The information in this article applies to:
SUMMARYThe trace flag 8816 may help application designers and Year 2000 consultants find Year 2000 bugs in older programs. This trace flag logs every two-digit year conversion to a four-digit year. MORE INFORMATION
Microsoft SQL Server version 7.0 uses the new Two-Digit Year Cutoff configuration option to determine which century a two-digit date belongs in. This value minus 99 years determines the year boundaries for how a two-digit year is interpreted during conversion.
(Name nvarchar(50),go INSERT BirthDay(Name, BirthDate) VALUES('Chris Preston', '7/30/47') Example 1 and Example 2 will print the following line in the error log: 1998-12-22 18:36:51.23 spid7 2-digit year 47 converted to 2047. SQL Server is behaving correctly. This is an application error. To avoid the problem you can either enter the full four-digit year (1947), or decrease the two-digit year cutoff value. Microsoft recommends that all programs use the full four-digit year for all date operations. Additional query words: prodsql Y2K 2000 Year2000
Keywords : |
Last Reviewed: January 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |