Results 1 to 3 of 3

Thread: DATE and SYSDATE in SQL server

  1. #1
    Join Date
    Feb 2009
    Posts
    68

    DATE and SYSDATE in SQL server

    hie,

    I wanna know about Oracle Date and Sysdate in SQL server.
    Are they one and the same or something else?

    plz help......

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: DATE and SYSDATE in SQL server

    Dates are stored in the database as large numbers. The actual size of the data number is dependent on the operating system supporting the database. When a date is requested, it is returned in a human readable form.

    When date values are compared in the WHERE clause, the format of the date must match the format that the database is using or the comparison will fail. Alternately, if you are using another format, then you must tell the database how your date is formatted.

    The default format that the Oracle database uses is: DD-MM-YY.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: DATE and SYSDATE in SQL server

    SYSDATE is the function that helps you to get current operating system date.

    The syntax to get the system date is -

    SELECT SYSDATE FROM dual;

    You will receive the reply in the following way -
    (for e.g if Sysdate is 1st January 2009), then

    SYSDATE
    ---------
    01-JAN-09


    DD-Mon-YY is the default format.

Similar Threads

  1. Baseline Column Date automatically updates Finish Date
    By Adam 1980 in forum Microsoft Project
    Replies: 3
    Last Post: 18-05-2011, 06:08 PM
  2. How to set Password Expiration Date on Windows Server
    By Robbin M in forum Active Directory
    Replies: 1
    Last Post: 03-07-2009, 04:53 AM
  3. Cast Sysdate and MYSQL
    By fldrice in forum Software Development
    Replies: 4
    Last Post: 02-10-2008, 06:56 PM
  4. Windows 2000 Server query to disable date
    By Saphire in forum Window 2000 Help
    Replies: 2
    Last Post: 09-11-2007, 08:20 PM
  5. Changing start date and creating formula for finish date
    By stringse in forum Microsoft Project
    Replies: 1
    Last Post: 11-09-2006, 01:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,145,372.57456 seconds with 17 queries