Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FK for preventing parental deletions.
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
FK for preventing parental deletions.
Miscellaneous
Thread ID:
00720778
Message ID:
00720778
Views:
46
How would I use a Foreign Key to prevent deletions on the parent table?

For example, I have an Orders table and an OrderCancels table related by a FK on the iOrdID. When the app requests to delete a record on the Orders table, I need to check the OrderCancels table via the iOrdID FK for corresponding records, and if there are, not delete the order.
Next
Reply
Map
View

Click here to load this message in the networking platform