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 - 2004-04-28 : 14:13:05
|
Krish writes "I need to capture delete operations from a table.Any records deleted from a table need to be insertedinto a history-of-deletes sort of table.I was wondering how to achieve this with triggersThanks" |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-04-28 : 14:15:15
|
When a delete trigger fires, a deleted table is created that contains the deleted information. So use the deleted table to insert the rows into your auditting table.INSERT INTO Table1SELECT *FROM deletedTara |
|
|
nr
SQLTeam MVY
12543 Posts |
|
|
|
|