Results 1 to 4 of 4

Thread: [RESOLVED] mssql 2005 dates

  1. #1

    Thread Starter
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    Resolved [RESOLVED] mssql 2005 dates

    How do you store dates outside the range of sql servers date datatypes (specified below)


    datetime - January 1, 1753, through December 31, 9999

    smalldatetime - January 1, 1900, through June 6, 2079


    Thanks.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: mssql 2005 dates

    Perhaps as nvarchar?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: mssql 2005 dates

    If you can switch to SQL Server 2008 then you have the datetime2 data type, which goes all the way back to #1/01/0001 00:00:00 AM#.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    Re: mssql 2005 dates

    Ok thank you both for your input.

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