Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,261 of 19,505    |
|    Erland Sommarskog to Fred.    |
|    Re: A Question on Triggers    |
|    25 Apr 11 20:42:00    |
      3be78a95       From: esquel@sommarskog.se              Fred. (ghrno-google@yahoo.com) writes:       > SYSTEM_USER is documented in as returning the login name of the       > current user. What it seem to return in my environment is the login       > ID of the current user, in the form [domain]\[userid] where [domain]       > is the short or local domain name.              Small caveat here: it is better in most cases to use original_login().              In most cases, they will show the same thing, but if there has been       impersonation, original_login() will show you the user who actually       logged into SQL Server.       --       Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se              Links for SQL Server Books Online:       SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx       SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca