Cannot truncate table because it is being referenced by a FOREIGN KEY constraint.
2 Options… Use a DELETE without a where clause and then RESEED the identity (or) Remove the FK, truncate the table, and recreate the FK. TRUNCATE TABLE xxxxxxxx; — Cannot truncate table ‘tblImageReference’ because it is being referenced by a FOREIGN KEY constraint. DELETE FROM xxxxxxxxxx; Because TRUNCATE TABLE is a DDL command, it cannot... » read more