T-SQL Script to Delete All The Relationships Between A Bunch Of Tables in a Schema and Other Bunch i

Posted by Galilyou on Stack Overflow See other posts from Stack Overflow or by Galilyou
Published on 2010-04-13T18:00:44Z Indexed on 2010/04/13 18:03 UTC
Read the original article Hit count: 649

Filed under:

Guys,
I have a set of tables (say Account, Customer) in a schema (say dbo) and I have some other tables (say Order, OrderItem) in another schema (say inventory). There's a relationship between the Order table and the Customer table. I want to delete all the relationships between the tables in the first schema (dbo) and the tables in the second schema (inventory), without deleting the relationships between tables inside the same schema.

Is that possible? Any help appreciated.

© Stack Overflow or respective owner

Related posts about tsql