Comments
2 comments
-
Example:
DECLARE @exitcode int DECLARE @sqlerrorcode int EXEC master..sqlbackup '-sql "BACKUP ..."', @exitcode OUTPUT, @sqlerrorcode OUTPUT IF (@exitcode <> 0) OR (@sqlerrorcode <> 0) BEGIN RAISERROR ('SQL Backup step failed: exit code %d, SQL error code: %d', 16, 1, @exitcode, @sqlerrorcode) END
-
Thanks, Peter...
Just what I needed!
Add comment
Please sign in to leave a comment.
Thanks !