Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete in child table should update parent modidate
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00760229
Message ID:
00760236
Views:
13
You can use delete trigger on CartContent table.

>Hi everybody,
>
>I have 3 tables:
>     Cart
>        |
>         CartContent
>             |
>              CartDetail
>
>When I delete a record in CartContent, I want to delete all children in CartDetail (that's done from cascading deletes) and also update Cart.ModiType with 'D' and Cart.Modidate with getdate(). What should I do to accomplish that?
>
>Thanks a lot in advance.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform