Server: Msg 3201, Level 16, State 2, Line 1 Cannot open backup device 'D:mssqlbackupMYPalma.bak'. Device error...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
or device off-line. See the SQL Server error log for more details. Server: Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally.
The log file displays the following error:
2005-12-11 14:19:58.26 spid102 BackupDiskFile::OpenMedia: Backup device 'd:radhapalmaMYPalma.bak' failed to open. Operating system error = 2(The system cannot find the file specified.).
2005-12-11 14:21:30.31 spid102 BackupDiskFile::OpenMedia: Backup device 'c:palmaMYPalma.bak' failed to open. Operating system error = 2(The system cannot find the file specified.).
2005-12-11 14:36:19.37 spid102 BackupDiskFile::OpenMedia: Backup device 'd:radhaMYPalma.bak' failed to open. Operating system error = 2(The system cannot find the file specified.).
However, I have restored many databases and I recall something like this working just fine:
restore database Try_Palma from disk = 'D:mssqlbackupMYPalma.bak'
Now, it's just not working. What could be the problem?
Xp_cmdshell 'dir D:mssqlbackupMYPalma.bak'
This should return the results if the file exists. Also, the D: and C: parameters without the backslash will probably have you searching in the system folders on the server. So just check to make sure you have the correct path for the backup files.
Dig Deeper on SQL Server Backup and Recovery
Related Q&A from Greg Robidoux
Synchronize databases on separate servers without using SANs. Learn options for server failover in SQL Server including log shipping, database ...continue reading
Restore backups in SQL Server 2000 and SQL Server 2005 with this command.continue reading
Back up tables from a SQL Server database to a file with these commands.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.