PRB: "Incorrect Syntax Near" Error When You Run the DBCC CHECKCONSTRAINTS Statement (814577)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
BUG #: 363951 (SHILOH_Bugs) SYMPTOMSWhen you run the DBCC CHECKCONSTRAINTS statement in SQL
Query Analyzer, you may receive the following error message: 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. CAUSEThe error occurs because the value of the CONCAT_NULL_YIELDS_NULL database option is set to OFF. RESOLUTIONTo resolve the problem, set the value of the CONCAT_NULL_YIELDS_NULL database option to ON before you run the DBCC CHECKCONSTRAINTS statement. To
set this value, perform one of the following procedures:
-Or-
- In SQL Query Analyzer:
- On the Query menu, click
Current Connection Properties.
- Click to select the Set
concat_null_yields_null SET option.
- Click OK.
STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
REFERENCES For additional information, click the following article
number to view the article in the Microsoft Knowledge Base: 279338
FIX: DBCC CHECKCONSTRAINTS Does Not Handle Names with Special Characters
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kberrmsg kbprb KB814577 kbAudDeveloper |
---|
|