You can script ALTER TABLE statements that DELETE foreign key CONSTRAINTs. You can also put them back after.
I don't know of any command that will automatically drop all constraints of a certain type, though. I'm sure you can write an SP to automate the deletes with the constraint and table names given in the information_schema.constraints view.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.