I’ve seen queries for 2005/2008 to find what process caused a delete but have not seen anything for 2000. Is there anything?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For deletes, you can set up a DML trigger (see CREATE TRIGGER) in BOL for details. Likely the most relevant information that you can obtain will come from sysprocesses, and you can query it using your spid (@@SPID).
Capture the info you’re looking for, and log it out to a table you create for logging (along with the key values required to know which record(s) were deleted).