![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a SQL Store Procedure that performs a database backup, to a disk file, for each 'user' database in the SQL instance. The script is simple; it just uses a 'fetch' loop and performs a 'BACKUP DATABASE...' for each database. If I run the script in QA, and one of the database backups fails for any reason - backup disk full, path not found etc., the script just loops through to the next database. Which is what I want. However, if I then run the SP as a scheduled job, the job fails, and does not continue to the next database backup. How can I get the SP to ignore the BACKUP DATABASE failure(s) when it's executed from a scheduled job? I guess these are O/S errors being passed back to SQL. |
![]() |
| Thread Tools | |
| Display Modes | |
| |