FIX: Unable to Truncate a Table That Had a Constraint DefinedLast reviewed: April 9, 1997Article ID: Q156287  | 
	
	
The information in this article applies to:
 
 SYMPTOMSThe 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.Deleting from the table produces the following error: 
 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. WORKAROUNDTo work around this problem, do the following: 
 STATUSMicrosoft 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. 
 MORE INFORMATIONThis problem occurs if the table once had a constraint defined, but the constraint was later removed by the ALTER statement. 
  | 
	
	Additional query words: 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |