UserId/Computer Name
Good morning! I am using DWMX with MS SQL and have created a history table that is populated via a trigger everytime an insert, update, or delete action takes place on a particular table. My problem is trying to capture either the UserId/Computer name of the person performing the action. I've tried "SUSER_SNAME" and "USER", but it only returns the Userid of the person currently logged on - me! Although I'm using session variables in the application, I can't seem to translate those into Userids in SQL - any ideas?
|