Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
which field in msdb.dbo.sysjobhistory tells if Job Failed or completed successfully ??
Or any other field in any other table ???
Posted

1 solution

That will be run_status

Note: strictly speaking run_status = 0 means "failed" but you might be better off using run_status <> 1 ... I.e. "did not succeed"

reference list[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900