Created
February 19, 2014 15:45
-
-
Save tkMageztik/9094694 to your computer and use it in GitHub Desktop.
Genera sentencias para eliminación de 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 ' + OBJECT_SCHEMA_NAME(parent_object_id) + | |
'.[' + OBJECT_NAME(parent_object_id) + | |
'] DROP CONSTRAINT ' + name | |
FROM sys.foreign_keys | |
WHERE referenced_object_id = object_id('Mantenimiento.SIC_T_ALMACEN') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment