August 18, 2015 at 9:52 am
Is any query to find the user name by mentioning the sid ?
August 18, 2015 at 9:56 am
SELECT name FROM sys.database_principals WHERE sid = ...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 18, 2015 at 10:12 am
thanks
August 19, 2015 at 3:55 am
SELECT SUSER_SNAME(0x01)
Where 0x01 is the SID. This will give you the login name, i.e. at the server level.
-----
JL
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply