Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SP for Cascade Deletes
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00397669
Message ID:
00399936
Views:
10
' CREATE TRIGGER trigger_name FOR DELETE on parent_table
AS
DELETE FROM child_table
WHERE fkid IN (SELECT PK FROM deleted)
GO '

Mike,

Thanks for for the input. I used somebody's else syntax that went like:
****
CREATE TRIGGER trigger_name FOR DELETE on parent_table
as
delete child_table
from child_table, Deleted
where child_table.fkid = deleted.pk
****

Seems to do the job -- anything wrong with this second approach?

Thanks,

Kevin
Kevin Emmrich
www.jkt9000.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform