Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-10-24 : 09:20:45
|
| Erich writes "I have table A with primary key aa. I have table B with primary key bb. I have table C with primary key cc. Primary key aa is a foreign key in table B. Primary key bb is a foreign key in table C.I have a trigger that on deletion of a record in table A, it will delete all the records in it’s child tables that contain “aa” as a foreign key.Because table C contains bb do I need to specify a seperate trigger for table B to delete it's children when a record in table BB is deleted or will the trigger written for table A take care of this. If table C is not deleted and the record in table B that contains the foreign key for table C is deleted, it seems I would mess up the integrity of the data in my database." |
|
|
|
|
|