To view all server role membership requires

SELECT sys.server_role_members.role_principal_id, role.name AS RoleName,  
    sys.server_role_members.member_principal_id, member.name AS MemberName 
FROM sys.server_role_members 
JOIN sys.server_principals AS role 
    ON sys.server_role_members.role_principal_id = role.principal_id 
JOIN sys.server_principals AS member 
    ON sys.server_role_members.member_principal_id = member.principal_id;
   
   

Comments

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Restore of database 'DataBase_Name' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

Cannot convert "Column" between a unicode and a non-unicode string data types in SSIS