I have set up trigger on my database tables. To record Audit for the tables. Now i want to check who which user have made changes to those tables. From the Querry analyzer if insert values in tables and in the trigger i can get the user information by using sp_who @@SPID. i have the small vb.net user application and wants to track the changes made to the table from vb.net. How can i get the user of vb.net in trigger.
Welcome to the forum! Post the question in relevant forum section only, moved from DB Mirroring section.