what sql query will i need to show the activated server roles in a specific user?
Tnx 4 giving me an idea..
sef
2008-10-07 06:39:33
+1
A:
THIS SHOULD DO IT:
select 'ServerRole' = spv.name, 'MemberName' = lgn.name, 'MemberSID' = lgn.sid from master.dbo.spt_values spv, master.dbo.sysxlogins lgn where spv.low = 0 and spv.type = 'SRV' and lgn.srvid IS NULL and spv.number & lgn.xstatus = spv.number
sef
2008-10-07 06:40:11