Previously used this SQL Agent Jobs, how to document to get information about all SQL Scheduled jobs.
How can I find out the duration of the last run for each job? I need seconds, minutes, and hours (hopefully not, but I’m afraid).
Can anyone give some insight into how I could query this?
Assuming you’re not going to have any jobs that run longer than 999 hours, this should give you a good starting point: