﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / T-SQL (SS2K5)  / List job name which didn't run today but supposed to run today. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 06:54:27 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: List job name which didn't run today but supposed to run today.</title><link>http://www.sqlservercentral.com/Forums/Topic1380698-338-1.aspx</link><description>will this help:[code="sql"];with LatestJobs AS(SELECT Job_id, step_id, max(convert(varchar(8),run_date)+RIGHT('000000'+CONVERT(varchar(6), run_time),6)) As LastRunfrom msdb.dbo.sysjobhistorygroup by Job_id, step_id)select j.job_id, j.name, next_run_date, next_run_time from msdb.dbo.sysjobs jjoin msdb.dbo.sysjobhistory h on h.job_id = j.job_idjoin LatestJobs lj on lj.job_id = j.job_id and lj.step_id = h.step_id and lj.LastRun = convert(varchar(8),run_date)+RIGHT('000000'+CONVERT(varchar(6), run_time),6)join msdb.dbo.sysjobschedules s on s.job_id = j.job_idwhere h.run_date &amp;lt; s.next_run_date and h.run_time &amp;lt; s.next_run_timeand convert(date,convert(varchar(8),ISNULL(NULLIF(s.next_run_date,0),19000101)),112) &amp;lt; convert(date, getdate())[/code]please do not hesitate to work and / or refine this further if it does not meet all your requirements</description><pubDate>Mon, 05 Nov 2012 05:21:52 GMT</pubDate><dc:creator>Stewart "Arturius" Campbell</dc:creator></item><item><title>List job name which didn't run today but supposed to run today.</title><link>http://www.sqlservercentral.com/Forums/Topic1380698-338-1.aspx</link><description>Hi,I have one query.i face one issue almost every day.We have lot of scheduled jobs configured ,some of jobs can't start on time as server may down at that time.Can i get the query which will show 'that  job didn't run today '</description><pubDate>Sat, 03 Nov 2012 05:25:08 GMT</pubDate><dc:creator>Alone</dc:creator></item></channel></rss>