Search notes:

SQL Server: sys.server_role_members

sys.server_role_members shows the membership of logins in server roles.
The view consists of two columns, only, role_principal_id and member_principal_id. Both ids can be joined to sys.server_principals:
select
-- srm.role_principal_id,
   rol.name                 role_name,   
-- srm.member_principal_id,
   mbr.name                 login_name
from
   sys.server_role_members  srm                                                join
   sys.server_principals    rol on srm.role_principal_id   = rol.principal_id  join
   sys.server_principals    mbr ON srm.member_principal_id = mbr.principal_id; 

See also

The corresponding view for membership in database roles is sys.database_role_members
The sys schema

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740439614, '18.117.156.90', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/administration/schemas/sys/objects/views/server_role_members(51): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78