Created
December 26, 2016 10:58
-
-
Save koffisani/f4e9507a86c4862fb1168700d9d5f938 to your computer and use it in GitHub Desktop.
Deactivate all constraints on tables in an SQL Server database.
This file contains 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
USE <nom_database> ; | |
EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment