Click here to Skip to main content
15,917,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi i am using sql server 2005 , i have an application if a particular user "A" is logged in to website and does some modifications on the wesite so they will be reflected on the database. so i want to create a triggers to trace the modifications done by that particular user on all the tables of the database.

so i thought i will create trigger so if the user is trying to update or delete any record in all tables then we monitor that user had done something(like updating or deleted some records).
can someone please suggest me is it correct way to monitor with triggers or need to approach in different way.

all the tracing information should be saved in a text file
Updated 5-Sep-12 7:04am

1 solution

One option for you is to use SQL Server Profiler.. very powerful tool...but be careful as files get really large.. think about your disk space as well...[^]
Share this answer
srinvas 7-Sep-12 11:41am    
thanks for ur response but will you please suggest me other than profilers.

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