Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FK for preventing parental deletions.
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
FK for preventing parental deletions.
Divers
Thread ID:
00720778
Message ID:
00720778
Vues:
47
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform