Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Date Conversion
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

45 Posts

Posted - 12/05/2002 :  10:04:28  Show Profile  Reply with Quote
I have a text file that I imported into SQL using DTS. My problem is any date prior to 12/31/49 (source) it shows up as 12/30/2049. How do I resolve this.

Most Valuable Yak

15732 Posts

Posted - 12/05/2002 :  10:08:44  Show Profile  Visit robvolk's Homepage  Reply with Quote
sp_configure 'two digit year cutoff', '1910'

Just set the 2nd argument to match the earliest year your two-digit values can represent. More info on sp_configure in Books Online.

Go to Top of Page

Starting Member

45 Posts

Posted - 12/05/2002 :  10:45:47  Show Profile  Reply with Quote
Thanks for you help

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000