Example:selectjobs.[name] as Jobname,jobs.[enabled] as Enabled,convert(varchar(10),convert(datetime,convert(varchar(10),hist.run_date)),101) as LastRun,jobs.[description] as Descriptionfrom msdb.dbo.sysjobs as jobsleft join(select job_id, max(run_date) as run_date from msdb.dbo.sysjobhistory group by job_id)as histon hist.job_id = jobs.job_idorder by hist.run_date desc
No, you're never too old to Yak'n'Roll if you're too young to die.