Hi, I have .bak file and want to restore it via sqlcmd. Please share restore command
When I am trying to restore a .bak file I am getting the error message
RESTORE DATABASE [XXX] FILE = N’XXX’ FROM DISK = N’C:\DRM\
SQL_SERVER_BACKUP\XXX.bak’ WITH FILE = 2, MOVE N’XXX’ TO N’c
:\Program Files (x86)\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\\DRM_G
OLD_PS3.mdf’, MOVE N’DRM_GOLD_PS3_log’ TO N’c:\Program Files (x86)\Microsoft SQ
L Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\\XXX.LDF’, NOUNLOAD, STATS = 10
Msg 3234, Level 16, State 1, Server YYYY, Line 1
Logical file ‘XXX’ is not part of database ‘XXX’. Use RESTORE
FILELISTONLY to list the logical file names.
Msg 3013, Level 16, State 1, Server YYYY, Line 1
RESTORE DATABASE is terminating abnormally.