BUG: DBCC CHECKCONSTRAINTS Fails with Error Message 170 (812914)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

BUG #: 363951 (SHILOH_BUGS)

SYMPTOMS

The DBCC CHECKCONSTRAINTS command fails, and you receive the following error message when the CONCAT_NULL_YIELDS_NULL option is set off:

Server: Msg 170, Level 15, State 1, Line 1 Line 1: Incorrect syntax near ')'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.

WORKAROUND

To work around the problem, follow these steps:
  1. Explicitly set the CONCAT_NULL_YIELDS_NULL option on before you run the DBCC CHECKCONSTRAINTS command. For example:
    set CONCAT_NULL_YIELDS_NULL on
    go
    DBCC CHECKCONSTRAINTS 
  2. If you run DBCC CHECKCONSTRAINTS in Query Analyzer, in the Current connection properties dialog box, select Set concat_null_yields_null.

STATUS

Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000.

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbSQLProg kbQuery kbAppDev kbBug KB812914 kbAudDeveloper