I'm wondering if there are any tricks to pragmatically cascade or recursively delete a record and all of its "children" (and their children, etc)?
In *most* of my relationships w/ referential integrity I have left cascade delete unchecked on purpose. I've done this because I'm paranoid and obviously to prevent accidental data loss.
I've got a situation, a command button, where if I really really really want to I can delete a [job]. When I click this button its subroutine performs a series of 15 different sql calls to find and delete related data in 15 different tables (as of right now). Is there a more efficient way to do this? My only other thought was to pragmatically change the constraints to cascade delete, delete once, then change the constraints back. But changing ALL of the constraints would be a chore too.
As far as children, or nesting goes in my situation a [job] will have related data as much as 5 relationships deep. (I'm not sure how the right terms here... table Jobs has many B which has many C which has many D which as many E which has many F.. does my babble make sense?)