﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / Data Corruption (SS2K8 / SS2K8 R2)  / Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 03:01:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999</title><link>http://www.sqlservercentral.com/Forums/Topic1399047-2893-1.aspx</link><description>[quote][b]David Paskiet (12/20/2012)[/b][hr]There has to be an easier way!  I am all ears and open to a better way![/quote]See the kb article referenced in the article I mentioned.</description><pubDate>Fri, 21 Dec 2012 00:37:55 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999</title><link>http://www.sqlservercentral.com/Forums/Topic1399047-2893-1.aspx</link><description>I found the issue using the checkDB function with data purity which is what caused me to post.   What I could not do was identify the rows themselves in the normal fashion that i do.  Instead I jumped through hoops and did the RBAR thing trying to find the actual rows.  I pretty much opened the table and looked at each row (70K rows) using the GUI rather than a simple query.  There has to be an easier way!  I am all ears and open to a better way!</description><pubDate>Thu, 20 Dec 2012 20:13:21 GMT</pubDate><dc:creator>David Paskiet</dc:creator></item><item><title>RE: Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999</title><link>http://www.sqlservercentral.com/Forums/Topic1399047-2893-1.aspx</link><description>Run CheckDB with the Data_Purity option. For Resolving the error, see the section in this article on data purity errors and the kb article it links to.[url]http://www.sqlservercentral.com/articles/65804/[/url]</description><pubDate>Thu, 20 Dec 2012 12:23:39 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999</title><link>http://www.sqlservercentral.com/Forums/Topic1399047-2893-1.aspx</link><description>What is the datatype of the column containing the bad data?If it is not a DATE, DATETIME, DATETYPE2, or SMALLDATETIME datatype, what it the format of the data?If you really suspect database corruption, have you run DBCC CHECKDB against that database?[code="sql"]DBCC CHECKDB ( MyDatabase )WITH NO_INFOMSGS, EXTENDED_LOGICAL_CHECKS, DATA_PURITY;[/code]</description><pubDate>Thu, 20 Dec 2012 10:51:59 GMT</pubDate><dc:creator>Michael Valentine Jones</dc:creator></item><item><title>Msg 542:  An invalid datetime value was encountered.  Value exceeds the year 9999</title><link>http://www.sqlservercentral.com/Forums/Topic1399047-2893-1.aspx</link><description>Guys:Some how an invalid or corrupt data ended up in the system.  Presumably this happened when the database was upgraded from a legacy system.  I know that in the old systems a bulk load process would allow bad dates to come in.  It was a bug that was ignored by the dev team.  I am trying to identify the rows in order to identify/correct the data but am having absolutely NO luck.  I cant convert it nor does the isdate function work without error'ing out.  Any suggestions?  I am out of options.Thanks!</description><pubDate>Thu, 20 Dec 2012 10:15:29 GMT</pubDate><dc:creator>David Paskiet</dc:creator></item></channel></rss>