I have Object1 and junction table and Object2. Object2 is table that has many junction tables, but can have only one junction table torefrencing to it. When table Object1 is removed, then junction table and Object2 should be removed. How can I make foreign keys in this situation? But when Object2 is removed, then only junction table should be removed, not Object1. I’m using SQL Server 2008.
Share
You could
junctiontable toObject2.Object1, check for deletion and delete the corresponding records in yourjunctiontable andObject2.