Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Stored Procedure to get Job History (with Steps)

By Andy B.,

This procedure returns the job history for any jobs run on a given day. The parameter should be entered in mm/dd/yyyy format surrounded by single quotes. I use it to produce a report of any jobs that failed on any given day.

It should be created on the MSDB database.

Example: EXEC usp_job_history '10/02/2004'

This is my first script, so if I've missed anything or if you see any room for improvement, please let me know.

Total article views: 2050 | Views in the last 30 days: 8
 
 
Contribute