troubleshooting Question

Table auditing in SQL / ASP.NET

Avatar of bkourouma
bkourouma asked on
Microsoft SQL ServerASP.NET
5 Comments3 Solutions208 ViewsLast Modified:
I have an application web with a separate website administration site.

I want to be able to log old/new data on insert/update/delete in a separate audit_table.

I have achieved that by using triggers but my problem is how do I get the user who is logged on using asp.net to add to the audit_table?

Please note that I want to achieve this WITHOUT having to pass a parameter to a stored proc. This is because i have hundreds of tables and I am not necessarily using stored proc...

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros