![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I do this to backup the database on our production server BACKUP DATABASE [DP2] TO DISK = N'D:\mssql\data\MSSQL\BACKUP\DailyDbBackup' WITH INIT , NOUNLOAD , NAME = N'DP2 Backup Job', NOSKIP , STATS = 10, NOFORMAT DECLARE @i INT select @i = position from msdb..backupset where database_name='DP2'and type!='F' and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name='DP2') RESTORE VERIFYONLY FROM DISK = N'D:\mssql\data\MSSQL\BACKUP\DailyDbBackup' WITH FILE = @i It works fine. However if I change to a mapped drive it gives me the following error. I had agent running under the system account with failures so thought I would change to my account, it also fails. I have full control of that directory from this machine in windows. What gives? Executed as user: DP2SQL02\jcantley. Cannot open backup device 'V:\DailyDbBackup'. Device error or device off-line. See the SQL Server error log for more details. [SQLSTATE 42000] (Error 3201) BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013) Associated statement is not prepared [SQLSTATE HY007] (Error 0) Cannot open backup device 'V:\DailyDbBackup'. Device error or device off-line. See the SQL Server error log for more details. [SQLSTATE 42000] (Error 3201) VERIFY DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed. thanks jc |
![]() |
| Thread Tools | |
| Display Modes | |
| |