Some days ago, i worked to get failed jobs detail and an alert for the same. I used some system tables from msdb database to fetch the details for same. And msdb.dbo.sysjobhistory is one of the table among them which used in the script. But this table not contain data which shows the date and time when the job exactly started and completed. There are there fields which help use to get the same details,
- run_date
- run_time
- run_duration