Here's one I just wrote myself
The Weird and The Wonderful
4
Posts
3
Posters
0
Views
1
Watching
-
SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]
So - intention is wonderfully opaque there then.
-
SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]
So - intention is wonderfully opaque there then.
-
How long has it been since it last ran? :~ Am I the unofficial winner of an official no-prize? :laugh:
Would the task have been overdue if we were at the current time on the date at which the task was due. A very bad piece of code for a very bad business need.
-
SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]
So - intention is wonderfully opaque there then.