SQL Agent Miscellaneous

msdb.dbo.sysjobhistory 

run_date is an INT in the format 'yyyyMMdd'. To get a value to compare, e.g. TODAY, use SELECT FORMAT(GETDATE(), 'yyyyMMdd')


Comments

Popular posts from this blog

How SQL Server Determines the Next Run Date for SQL Agent Jobs