Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
User performs some operation say for example Place an order, Delete an order..

How to implement Auditing in SQL table? Please guide me.
Posted
Comments
manognya kota 4-Sep-12 2:24am    
could you please elaborate what you are searching for and what have you tried?

Here is a similar thread
Audit trial in sql server to track changes in the table[^]

More resources here[^]
 
Share this answer
 
Hi,

You can create Insert/Update/Delete triggers on tables that you would like to monitor.

Check below link

http://stackoverflow.com/questions/4200407/table-history-trigger-in-sql-server[^]

Or you can use,
MSDN : ChangeTable[^] But this will work on SQL server 2008 /R2

Thanks
-Amit Gajjar
 
Share this answer
 
You can Create Trigger on Main Table For Insert , Update and Delete to fetch all actions on Table.



Overview of SQL Server database Triggers[^]

Triggers -- Sql Server[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900