Writing the trigger should be no major deal. Getting the User who deleted the row is a bit tricky, depending on the authentication mechanism used by your program. If you are using Windows Authentication you can use SYSTEM_USER to determine the user, USER for Sql Server Authentication, and if you are using your own authentication mechanism in addition to one of the above, you will need to pass it explicitly by some means from your front-end. Assuming you are using Windows Authentication:CREATE TRIGGER del_Trigger ON TableAFOR DELETEAS BEGIN INSERT INTO TableB(UserID, DateTimeDeleted, ColA, ColB, ColC) SELECT SYSTEM_USER, CURRENT_TIMESTAMP, ColA, ColB, ColC FROM DELETED dEND
Owais
Make it idiot proof and someone will make a better idiot