ShankarJ
Programmer
- Aug 9, 2003
- 856
Hi!
Before I venture into trying to do this on my own, I would like to know if any of you could guide me to create a Stored Procedure which takes as it's parameters the Table Name and the Row ID, finds all the dependant Child Tables and their ParentID link column to the given Table and generate SQL statements to delete these Child Rows. I need this to delete a Parent Row. All the Parent-Child foreign key relationship DO NOT have the CASCADE option on UPDATE.
Appreciate any help I can get.
Regards
Before I venture into trying to do this on my own, I would like to know if any of you could guide me to create a Stored Procedure which takes as it's parameters the Table Name and the Row ID, finds all the dependant Child Tables and their ParentID link column to the given Table and generate SQL statements to delete these Child Rows. I need this to delete a Parent Row. All the Parent-Child foreign key relationship DO NOT have the CASCADE option on UPDATE.
Appreciate any help I can get.
Regards