Re: Error 2570 in SQL Server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



samjoseph74 via SQLMonster.com (u52157@uwe) writes:
When I check my database integrity using DBCC CHECKDB with DATA_PURITY
option enabled and it gives the below error message:

Msg 2570, Level 16, State 2, Line 1
Page %S_PGID, slot %d in Object %d Index %d Column %.*ls value %.*ls is
out of range for data type "%.*ls". Update column to a legal value.


Please suggest me what I do to overcome this problem.

The exact meaning of the error message is this: for some data types, not
all bit patterns are legal values. For instance, for a datetime column,
it is possible to compose a bit pattern such that the year is > 9999. The
DATA_PURITY check reveal such problems.

This problem could indicate a hardware problem, and that data has not been
written properly to disk. However, if this is a database upgraded from
SQL2000, it could be illegal data that sneaked because of insufficient
checks in BCP and similar. I believes that all such holes have been closed
in SQL 2005, or at least Microsoft thinks so.

To address this, you need to locate the bad row. In the error message you
posted, the placeholders in the message are not replaced with actual values.
Did the output really look that way? Without that information, this is a bit
of a needle in a haystack...
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: MS-SQL Related
    ... What error message do you see? ... What is uniqueidentifier as a data type? ... Also what is the data type for setting unique STRINGS ((nchar, ... SQL Server does not allow me set primary keys for columns where data ...
    (comp.databases.ms-sqlserver)
  • Problem updating Sql Server database from asp page
    ... I am building an asp application with sql server as backend. ... me an error message. ... Disallowed implicit conversion from data type varchar to data type money, ...
    (microsoft.public.inetserver.asp.db)
  • Re: Connecting to a sql server database
    ... You are trying to use integrated security in your app (as is shown in the ... line numbered code where the connection string is shown). ... sql server, hence integrated security fails. ... > causing the error message and what the correction for this. ...
    (microsoft.public.dotnet.general)
  • Re: Access 97 to SQL
    ... The timestamp is a data type, ... the timestamp field does not need to be part of the SELECT ... > converted the Access tables to a SQL Server 2000 database and linked the ... > the way I set up Autonumbering in SQL? ...
    (microsoft.public.access.externaldata)
  • Re: Invalid OLEVERB structure error 80040000 on DTS job
    ... >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... >- I copied this DTS package from a 32 bit Windows Server 2003 system. ... >I would only get that error message in the Job History logs though. ...
    (microsoft.public.sqlserver.dts)