Reviewing Job History
Everything a job fail, I used to look at the job history via the GUI. Today, I finally got sick of the stupid ass GUI because when the job history history contains a lot of entry, the damn thing times out or takes FOREVER and you got people breathing down your back asking why the hell the job failed.
Seriously. 3 months archive of a job history sounds decent but when the job runs every freaking minute, it still takes a while to load. So the following query will help you ID the error message faster, via T-SQL. No overhead and no headaches, except for troubleshooting the error of course. For additional information, look to BOL.
December 3rd, 2008 by Obe | No Comments »
exec msdb..sp_help_jobhistory
@job_name = ‘Name of your job’
, @run_status = 0
, @MODE = N’FULL’





