I had sort of posted about this before, but the problem just keeps getting thicker and I dont think I did a good job of explaining it before..
I need 2 new databases that are basically identical to ones that already exist. In the past I have done this through a backup device I created with sp_addumpdevice. Then restored the database into the new one with the "force restore over" option checked, and it always worked perfectly. Now I'm trying to do the very same thing, but getting nothing but errors. When I go to do the restore through Ent Mgr, I get a box that says "Restoring File 1" and it just sits there hung up until I stop the operation. Alternately when I click OK to restore from device I get the message:
"cannot open backup device E:\POSDB. Device error or device off-line, see SQL Log for more details. Restore database is terminating abnormally".
The SQL Log gives this message:
"BackupDiskFile::OpenMedia: Backup device 'E:\POSDB' failed to open. Operating system error = 5(Access is denied.)."
There isn't a permissions problem with the device that I can see.. It's a public folder.
When I try it using SQL Analyzer here is my code:
USE master
GO
RESTORE FILELISTONLY
FROM POStransfer1
RESTORE DATABASE Conc_merch
FROM POStransfer1
WITH RECOVERY,
MOVE 'POS_data' TO 'S:\Program Files\Microsoft SQL Server\MSSQL\Data\Conc_merch_data.mdf',
MOVE 'POS_log' TO 'S:\Program Files\Microsoft SQL Server\MSSQL\Data\Conc_merch_log.ldf'
GO
Query analyzer returns the following errors:
Server: Msg 3013, Level 16, State 1, Line 3
RESTORE FILELIST is terminating abnormally.
Server: Msg 3201, Level 16, State 2, Line 6
Cannot open backup device 'POStransfer1'. Device error or device off-line. See the SQL Server error log for more details.
Server: Msg 3013, Level 16, State 1, Line 6
RESTORE DATABASE is terminating abnormally.
Can anyone give me a direction to go to start fixing this? Thanks !
I need 2 new databases that are basically identical to ones that already exist. In the past I have done this through a backup device I created with sp_addumpdevice. Then restored the database into the new one with the "force restore over" option checked, and it always worked perfectly. Now I'm trying to do the very same thing, but getting nothing but errors. When I go to do the restore through Ent Mgr, I get a box that says "Restoring File 1" and it just sits there hung up until I stop the operation. Alternately when I click OK to restore from device I get the message:
"cannot open backup device E:\POSDB. Device error or device off-line, see SQL Log for more details. Restore database is terminating abnormally".
The SQL Log gives this message:
"BackupDiskFile::OpenMedia: Backup device 'E:\POSDB' failed to open. Operating system error = 5(Access is denied.)."
There isn't a permissions problem with the device that I can see.. It's a public folder.
When I try it using SQL Analyzer here is my code:
USE master
GO
RESTORE FILELISTONLY
FROM POStransfer1
RESTORE DATABASE Conc_merch
FROM POStransfer1
WITH RECOVERY,
MOVE 'POS_data' TO 'S:\Program Files\Microsoft SQL Server\MSSQL\Data\Conc_merch_data.mdf',
MOVE 'POS_log' TO 'S:\Program Files\Microsoft SQL Server\MSSQL\Data\Conc_merch_log.ldf'
GO
Query analyzer returns the following errors:
Server: Msg 3013, Level 16, State 1, Line 3
RESTORE FILELIST is terminating abnormally.
Server: Msg 3201, Level 16, State 2, Line 6
Cannot open backup device 'POStransfer1'. Device error or device off-line. See the SQL Server error log for more details.
Server: Msg 3013, Level 16, State 1, Line 6
RESTORE DATABASE is terminating abnormally.
Can anyone give me a direction to go to start fixing this? Thanks !