Results 1 to 4 of 4

Thread: date constant in sql 7 stored procs

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    date constant in sql 7 stored procs

    Hi all,

    can anyone tell me what is the date constant in sql server 7, I've used getdate and date but is not recognized by sql.

    'code

    if getdate > '10/05/2002'

  2. #2
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Isnt it getdate()
    ?
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  3. #3
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    Originally posted by Blobby
    Isnt it getdate()
    ?
    that's right.

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Code:
    GetDate
    ...Causes an error...
    Code:
    GetDate()
    ...Doesn't

    Stupid SQL Server...

    Also, be careful, '10/05/2002' could be 5th Oct or 10th May, depending on what format SQL Server is set to
    I always use dates in '10 May 2002' format...just to be sure

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width