Disable all the constraint in database


EXEC sp_msforeachtable “ALTER TABLE ? NOCHECK CONSTRAINT all”

Enable all the constraint in database


EXEC sp_msforeachtable “ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.