1 2 3 4 5 6 7 8 9 10 11 12 13
| RESTORE FILELISTONLY FROM DISK = N'[your.bak PATH]' go
restore database [newDB NAME] from DISK = N'[your.bak PATH]' WITH move '[DataFileName]' to '[newDB_DataFileName.mdf_PATH]', move '[LogFileName]' to '[newDB_LogFileName.ldf_PATH]', Replace, Recovery GO
|