FIX: Unable to Truncate a Table That Had a Constraint DefinedID: Q156287
|
The TRUNCATE statement fails with the following error message:
Msg 4712, Level 16, State 1
Cannot truncate table '<tablename>' because it is being referenced by a
foreign key constraint.
Msg 439, Level 16, State 1
Unable to find foreign key constraints for table '<tablename>' in dbid
'x' though table is flagged as having them.
To work around this problem, do the following:
Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.
This problem occurs if the table once had a constraint defined, but the constraint was later removed by the ALTER statement.
Keywords : kbnetwork SSrvDRI kbbug6.50 kbbug6.00 kbfix6.50.sp2
Version : 6.0 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: April 2, 1999