Created
December 20, 2017 20:25
-
-
Save AlbertoMonteiro/e2090ed27f01f83e7fa5f3630b054ebd to your computer and use it in GitHub Desktop.
Disable constrains SQL Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all' | |
EXEC sp_msforeachtable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment