[Error] : The DELETE statement conflicted with the REFERENCE constraint
Pada posting tentang " [Error] : The DELETE statement conflicted with the REFERENCE constraint " akan dijelaskan solusi untuk permasalahan diatas. Solution : 1. Disable constraint, here the syntax : - Disable all table constraints ALTER TABLE YourTableName NOCHECK CONSTRAINT ALL - Disable single constraint ALTER TABLE YourTableName NOCHECK CONSTRAINT YourConstraint -- Disable all constraints for database EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all" 2. Execute Delete/Insert Quuery. 3. Enable constraint, here the syntax : - Enable all table constraints ALTER TABLE YourTableName CHECK CONSTRAINT ALL - Enable single constraint ALTER TABLE YourTableName CHECK CONSTRAINT YourConstraint - Enable all constraints for database EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all" Recommended Reading: Format HTML table cell so that Excel format...