Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggers, stored procedures
Message
From
22/07/1999 17:39:44
 
 
To
22/07/1999 14:09:40
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00244883
Message ID:
00245028
Views:
32
If you want, you can use Delcaritive Referential Integrity (DRI) to enforce restricts. Include a REFERENCES constraint in you table definition.

As you found out, SQL Server does not have any built in way to cascade deletes or updates. Which is good for me because I one of those people who believes that you shouldn't change primary keys.

> I don't know how to cascade parent key changes to children when it is more than 1 parent record being changed.


That's a good problem. There's nothing to link the Inserted and Deleted tables if you've changed the primary key. Is there a candidate key that can be used to relate the children?

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform