Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Detect when a job fails, from a stored procedure.

Author  Topic 

jabuzeta
Starting Member

1 Post

Posted - 2010-08-15 : 18:26:55
I need detect when a job fails, from a stored procedure.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-08-16 : 05:13:03
Make use of sysjobhistory system table to get job execution status.it has a column run_status
which gives this info.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -