PRB: Syntax Error with Sp_dropkey on SQL Server 6.0Last reviewed: April 15, 1997Article ID: Q156487 |
The information in this article applies to:
SYMPTOMSWhen you attempt to run the stored procedure sp_dropkey on a computer running SQL Server 6.0 or later, you receive either of the following syntax errors:
CAUSEWith the introduction of Declarative Referential Integrity (DRI) in SQL Server 6.0, 'primary' and 'foreign' became keywords. Therefore, using either of them in sp_dropkey does not comply with their correct usage under SQL Server version 6.0 or later.
WORKAROUNDTo work around this problem, enclose the keywords 'primary' or 'foreign' in quotes, as shown in the following examples:
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |