Quantcast
Viewing all articles
Browse latest Browse all 15889

Windows user via group membership and sysadmin role for currently connected user

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



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>