Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Capturing the current Windows user in a Trigger/SP

Author  Topic 

CokoBWare
Starting Member

6 Posts

Posted - 2001-07-05 : 18:08:52
Can one write an sp that would be able to see the current Windows user activating a trigger or SQL code? I'm at a point where logging the username and/or domain is a vital component of my problem, and I would like to have SQL server 7 be able to write the current username to a record whenever the action takes place. Is there a way to determine the user within T-SQL?

Thanks in advance,

Coko

   

- Advertisement -