The information in this article applies to:
BUG# NT: 12551 (6.00) SYMPTOMS
If you include a table-level default constraint in a CREATE TABLE
statement, you will receive the following error:
WORKAROUND
Use column-level default constraints. For example, rewrite the above
SQL statement as:
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
SQL Server "Books Online" and the "Transact-SQL Reference" manual (page 67)
mention that table-level default constraints can be defined inside a CREATE
TABLE statement. This is a documentation error. The following statement
will give a syntax error:
Additional query words: SQL6 winnt
Keywords : kbusage SSrvDoc_Err |
Last Reviewed: March 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |