Link to home
Start Free TrialLog in
Avatar of F-J-K
F-J-KFlag for Canada

asked on

Drop Multiple Constraints - MS SQL Server/T-SQL

ALTER TABLE Customer
DROP CONSTRAINT contitleid_fk

ALTER TABLE Customer
DROP CONSTRAINT countryid_fk
             
ALTER TABLE Customer
DROP CONSTRAINT phoneid_fk

How can i drop multiple constraints at once instead of type ALTER TABLE on each constraint?
Avatar of chapmandew
chapmandew
Flag of United States of America image

>>How can i drop multiple constraints at once instead of type ALTER TABLE on each constraint?

you can't.
SOLUTION
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of F-J-K

ASKER

Good