Created
August 2, 2016 08:58
-
-
Save matejskubic/9a2c3292219d317c114244d248190a0b to your computer and use it in GitHub Desktop.
Drop all CONSTRAINTs
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
select | |
'ALTER TABLE [' + TABLE_NAME + '] DROP CONSTRAINT [' + CONSTRAINT_NAME + ']' | |
from INFORMATION_SCHEMA.TABLE_CONSTRAINTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment