Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete in child table should update parent modidate
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00760229
Message ID:
00760244
Vues:
18
>>>You can use delete trigger on CartContent table.
>>>
>>Thanks, just wanted to make sure, there is no other way. I'll try to write it tomorrow... Would it only need to handle updates, since I set cascading deletes?
>
>There's another way. You can issue UPDATE command on Cart table every time you delete from CartContent table but it doesn't seem like a right way to do that.

This is what I'm going to put in a trigger, e.g. each time I delete from CartContent, I would update Cart.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform