Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who did it??
Message
 
 
To
24/01/2008 11:40:22
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01285096
Message ID:
01285132
Views:
28
This message has been marked as the solution to the initial question of the thread.
>I need to populate a history table with all changes made to the production table (using trigger). One of the things I need to capture is who made each change, based on their windows login name. We are using Windows authentication. Though I have looked through all of the system stored procedures, and functions, I can't seem to remember the SQL syntax for capturing the login name. If someone would slap the back of my head (or just remind me of the command) it would be greatly appreciated.
SUSER_SNAME()
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform