hello,
I am trying to get a list of currently connected user who has sysadmin role. For the Windows login who doesn't have their logins created on the server but are part of Windows group, there seem to be no way to find out whether they are sysadmin or not. I was hoping to join dm_exec_session to syslogins or sys.server_principals view but since the Individual login doesn't exist on the server it comes back with empty row. Does anyone know how to resolve this problem.
I am using SQL 2008 r2.
Thanks for your input.
Kush