SQL Server Profiler shows NtUsername when I run a trace on my MS Access 2003 app with linked tables. The MS Access app connects through a default username: Bogus. But when I run the trace it shows the Windows Username domain\username.
How do I grab the Windows Username so that I can use it in a trigger just like it shows in the Profiler?
SUSER_NAME()will return'dom\user'for the executing windows authenticated user or just'username'for an sql authenticated user.