|
If I am auditing user actions and I want to be sure that I can capture the actual login, is there a function I can use in my auditing trigger?
(comments are locked)
|
|
There are a couple of built-in functions to give you the login for auditing.
One thing to keep in mind with these is that a login with impersonate privileges can cause the trigger to record an incorrect login by changing the execution context prior to activating the trigger. Here's a quick demo query: Exactly. Use suser_sname().
Dec 05 '09 at 04:02 AM
David Wimbush
(comments are locked)
|
|
The system_user function should give you the login of the user executing the query if it is invoked inside a trigger.
(comments are locked)
|

