FIX: Cannot Create a Qualified Table With a Check ConstraintLast reviewed: May 1, 1997Article ID: Q136959 |
The information in this article applies to:
SYMPTOMSWhen you attempt to create a table with the username.tablename format and a check constraint, you can get message 15009:
The object 'username.tablename' does not exist'. CAUSEThe full qualified table name is not being passed to the CHECK routine, and therefore the columns being tested do not have the base table information.
WORKAROUNDWhere possible, refrain from using the qualified table name or use a trigger instead of the check constraint. If the qualified table name is necessary, use the SETUSER function to impersonate the table owner.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.0. This problem was corrected in Service Pack 1 for SQL Server version 6.0. For more information, contact your primary support provider.
|
Additional query words: sql6
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |