Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Is there a sql server equivalent of whoami? Expand / Collapse
Author
Message
Posted Monday, September 2, 2013 4:19 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, March 12, 2014 6:50 PM
Points: 39, Visits: 141
Hi,

my rdbms version is 2012 sqlexpress.

is there a way to find out what login am I currently login using a command.

believe that unix has a command called whoami

http://linux.about.com/library/cmd/blcmdl1_whoami.htm

thanks a lot!
Post #1490579
Posted Monday, September 2, 2013 4:53 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:57 AM
Points: 2,304, Visits: 2,778
select suser_name()

** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
Post #1490587
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse