Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • 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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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