Results 1 to 3 of 3

Thread: date help...

  1. #1
    Join Date
    May 2003
    Posts
    25

    Unanswered: date help...

    I need to write a procedure allowing a date to be entered, however this date can not be anytime in the past??? Anyone have an idea how to do this?

  2. #2
    Join Date
    Dec 2002
    Location
    Antwerp, Belgium
    Posts
    227
    you can use the function getDate() which gives you the current date on the database server.
    Johan

  3. #3
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    ... and also you can define that column default as 'datetime DEFAULT GETDATE()'.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

Posting Permissions

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