Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Createing Triggers for deleting records with Microsoft SQL Server 2000

Status
Not open for further replies.

eamonskelly

Programmer
Jun 14, 2001
11
GB
How can I create a trigger, so that when I delete a table causes the record to be saved to a new audit-table AND deletes all records associated with that record in another table, passes these records to its own audit-table.
I have got a trigger which works for the main table, but the trigger on the dependent table only puts one of the records into the second audit-table instead of all of them. A cascade delete is occurring in each case, with a one to many relationship between the tables
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top