Disable and Enable Referential Integrity
The below T-SQL allows you to disable all constraints, run any database cleanup script you may need to and then re-enable the constraints.
|
– disable referential integrity for all tables in the database – enable referential integrity again for all tables in the database
|
Categories: Technical
SQL Server