FIX: DBCC CHECKCONSTRAINTS Does Not Handle Names with Special Characters

This article was previously published under Q279338
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 351025 (SHILOH_Bugs)
SYMPTOMS
When DBCC CHECKCONSTRAINTS encounters names with special characters, such as spaces, it may return an error message that resembles the following:
Server: Msg 156, Level 15, State 1, Line 15Incorrect syntax near the keyword 'Order'.Server: Msg 156, Level 15, State 1, Line 19Incorrect syntax near the keyword 'Order'.DBCC execution completed. If DBCC printed error messages, contact your system administrator.
RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
MORE INFORMATION
The example error message from the "Symptoms" section came from running the following query:
use NorthwindDBCC CHECKCONSTRAINTS				
The error occurs because there are several tables in the Northwind database whose names begin with "Order" and contain spaces; for example, [Order Details Extended] or [Order Subtotals].
Properties

Article ID: 279338 - Last Review: 01/16/2015 21:05:32 - Revision: 3.2

  • Microsoft SQL Server 2000 Standard Edition
  • kbnosurvey kbarchive kbbug kbfile kbfix kbsqlserv2000sp1fix KB279338
Feedback