The Script “sp_GetJobDetails” has 3 resultsets to get job details and its history analysis result. The Procedure has a parameter that gets Job_Id, however is an optional, a NULL value can be passed to fetch job details and History information for all jobs configured in the server.
The script will be very useful and handy for those who are looking for SQL Server Agent Job details and its execution details.
Note: This is an enhanced version of my earlier script posted in MSDN Gallery at https://gallery.technet.microsoft.com/T-SQL-Script-Get-Job-231229b4.
Please download the script and have your suggestions.
4 thoughts on “T SQL Script – Get SQL Job Details and history details”
Excellent script, this what I was looking for, Thanks a lot!!!