The information in this article applies to:
BUG# NT: 11057 (6.00) SYMPTOMSIf you add a constraint to a table, it resets the identity, causing it to insert zeros in the identity column for all subsequent table inserts. CAUSEThis problem only occurs if the identity field was added by using the ALTER TABLE statement. WORKAROUNDMove the data into a holding place with a SELECT INTO. Drop and recreate the table with the CONSTRAINT or IDENTITY in place from the beginning. Or, you can use a trigger temporarily to perform the check function. 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. MORE INFORMATION
The following script demonstrates this problem:
Additional query words: sql6 tsql
Keywords : kbprg SSrvProg kbbug6.00 kbfix6.00.sp1 |
Last Reviewed: July 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |