Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Here's one I just wrote myself

Here's one I just wrote myself

Scheduled Pinned Locked Moved The Weird and The Wonderful
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Duncan Edwards Jones
    wrote on last edited by
    #1

    SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]

    So - intention is wonderfully opaque there then.

    raddevusR M 2 Replies Last reply
    0
    • D Duncan Edwards Jones

      SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]

      So - intention is wonderfully opaque there then.

      raddevusR Offline
      raddevusR Offline
      raddevus
      wrote on last edited by
      #2

      How long has it been since it last ran? :~ Am I the unofficial winner of an official no-prize? :laugh:

      D 1 Reply Last reply
      0
      • raddevusR raddevus

        How long has it been since it last ran? :~ Am I the unofficial winner of an official no-prize? :laugh:

        D Offline
        D Offline
        Duncan Edwards Jones
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • D Duncan Edwards Jones

          SELECT DATEADD(dd,DATEDIFF(dd,GETDATE(),@rundate),GETDATE()) - [ProcessSchedule].[LastRunTime] As [Difference]

          So - intention is wonderfully opaque there then.

          M Offline
          M Offline
          megaadam
          wrote on last edited by
          #4

          Nice to see that DD still has a foothold in programming, despite his venture into politics.

          ... such stuff as dreams are made on

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups