I have a table and want to insert the current values of records that are being updated or deleted.
I tried to create a trigger on before update and on before delete but SQL Server 2005 doesn't like the before word.
How do I get this to work?
I want the trigger to take the current record and copy it to a history table that is a mirror of the base table with the two added fields of dateBackedUp
(that takes a getDate()) and a field called action
(that takes the action 'updated' or deleted')
please help