select top 100 js.last_run_date ,j.name, js.step_id,js.step_name,js.last_run_date,jsl.log,jh.message from msdb.dbo.sysjobhistory jhjoin msdb.dbo.sysjobs j on j.job_id = jh.job_idjoin msdb.dbo.sysjobsteps js on js.job_id = jh.job_idjoin msdb.dbo.sysjo…