• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

How to trace transactions against a table

A number of records in a table have been periodically removed. How can I execute a trace on the table to check what is happening to these records?



0
NickyPower
Asked:
NickyPower
  • 2
1 Solution
 
Raja Jegan RSQL Server DBA & ArchitectCommented:
You can write a trigger on that table to perform audit on that particular table and capture User name along to track what happened to the records.
0
 
NickyPowerAuthor Commented:
I am not a SQL Server expert so i am not too sure how to start writing a trigger...
0
 
Raja Jegan RSQL Server DBA & ArchitectCommented:
check out the link below:

http://msdn.microsoft.com/en-us/library/ms189799.aspx

Create three triggers for INSERT, DELETE and UPDATE to capture those details if anything is happening across that table.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now