Article ID: 279338 - View products that this article applies to.
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)
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 15 Incorrect syntax near the keyword 'Order'. Server: Msg 156, Level 15, State 1, Line 19 Incorrect syntax near the keyword 'Order'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.
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 the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
The example error message from the "Symptoms" section came from running the following query:
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].