I want to copy a database and paste to same server. I coded this T-SQL, but it failed. How to work out ? thanks.create database TestDB;use TestDB;create table test(age int)backup database TestDB to disk='C:\mssql2008\backup\TestDB.bak' with INITRESTORE DATABASE TestDB_1 FROM disk='C:\mssql2008\backup\TestDB.bak' WITH NORECOVERY, MOVE 'TestDB_Data' TO 'C:\mssql2008\backup\TestDB_1.mdf'
The error message isLogical file 'TestDB_Data' is not part of database 'TestDB_1'. Use RESTORE FILELISTONLY to list the logical file names.