Hi,
I am creating a trigger for updates and inserts to audit these types of transactions on a specified table.
My problem is that the function USER_NAME() and the variable USER only return the dbo username when I use them to capture the logins.
I know the logins are stored in the sys.syslogins table but is there some function or SQL variable that can capture the actual user's login name that I can use for the audit table? If someone could simply point me in the right direction it's no biggie and I can do the footwork.
thx.
Oh, P.S. I don't want to use the C2 Audit mode as an option