Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I built an application that is near completion now. I just realized that I did not set it to cascade on delete and update records. I really do not want to drop the tables, or even the database just to add this function. How do I go about creating a trigger that will cascade deletion and update of records?

Thanks for your help.
Posted

1 solution

Try How to add ON DELETE CASCADE to an existing MySQL table without dropping any existing data
[^]. This is for mySql but based on other posts, SQL Server should also work in a similar fashion.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900