SQL server if verify backup integrity fails do something -


i have made sql server agent backup job 'verify backup integrity' checked. want call job within stored procedure using sp_start_job. if backup integrity fails want (rollback/show error message..something that). how go doing this? sp_start_job return error or return 1 or what?

i figured out job not return 1, because job takes time complete , job failed part. found useful link wait job finish can catch error.

http://www.interworks.com/blogs/bbickell/2010/01/15/how-execute-and-monitor-agent-job-using-t-sql-sql-server-20052008


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -