FIX: DBCC CHECKTABLE May Fail if Table has a Text/Image Column and Long Clustering Key

Article translations Article translations
Article ID: 286257 - View products that this article applies to.
This article was previously published under Q286257
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 58222 (SQLBUG_70)
Expand all | Collapse all

Symptoms

When you execute a DBCC CHECKTABLE statement, the command may fail and the following error message occurs:
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionCheckForData (PeekNamedPipe()).
[Microsoft][ODBC SQL Server Driver][Named Pipes]Connection broken.
The error message occurs only if the following conditions are true:
  • A DBCC CHECKTABLE statement is executed on a table.
  • There are text or image columns in the table.
  • The clustering key for the table is at least 400 bytes long.

Workaround

To work around this problem:
  1. Script out all the objects from the affected database.
  2. Create a new database, and then execute the scripts from step 1 to create all the tables and other database objects.
  3. Use the bcp utility to copy the data out into flat files. Use the bcp utility to copy the data from the flat files into the scripted database that you created in step 2.
  4. Drop all the AUTO_CREATE_STATISTICS indexes from the new database.

Status

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 286257 - Last Review: November 2, 2013 - Revision: 3.0
Applies to
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB286257

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com