Hi
I am trying to take a backup of the database and using restore to create its copy on the same server
Basically I am following this approach
http://stackoverflow.com/questions/3912221/ms-sql-2008-create-a-copy-of-the-database-without-the-data
Using the restore command is giving me the following error
RESTOREDATABASE[TargetDB]FROMDISK= N'D:\backup.bak'WITHFILE=1,
MOVE N'OriginalDB'TO N'D:\sql data\TargetDB.mdf',
MOVE N'OriginalDB'TO N'C:\SQL Data\TargetDB_1.ldf',
NOUNLOAD, STATS =33
Logical file "ORIGINALDB" is not part of database "TARGETDB" . Use RESTOREFILELIST only to list
plz suggest as I checked the syntax is fine too as per
https://technet.microsoft.com/en-us/library/ms190447%28v=sql.105%29.aspx
I am using SQL Server 2012