Scheduled restore fails, SQL Agent reports success
steffan
Posts: 9
Any thoughts on how I could get the SQLAgent job to report failure when a scheduled restore fails? Even though the SQLbackup step failed, the job continued on to the next step because it thought the step succeeded. I know what caused the error, and don't anticipate it happening again, but would like to get notified if it does fail.
Thanks
-S
(Step output details below)
Executed as user: RTPREPORT\Administrator. SQL Backup v4.6.0.815
Restoring rtpx2REPORT (database) from:
\\10.100.1.55\RTPshare\RTPx2.sqb
Error 580: Failed to open file. Message: (Cannot open file "\\10.100.1.55\RTPshare\RTPx2.sqb".
The process cannot access the file because it is being used by another process.)
SQL Backup exit code: 580
name value. The step succeeded.
Thanks
-S
(Step output details below)
Executed as user: RTPREPORT\Administrator. SQL Backup v4.6.0.815
Restoring rtpx2REPORT (database) from:
\\10.100.1.55\RTPshare\RTPx2.sqb
Error 580: Failed to open file. Message: (Cannot open file "\\10.100.1.55\RTPshare\RTPx2.sqb".
The process cannot access the file because it is being used by another process.)
SQL Backup exit code: 580
name value. The step succeeded.
Comments
This will alert you to all warnings and errors. If you want to ignore warnings, then ignore all exitcodes less than 500.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Thanks
-S