Search notes:

SQL Server - sys.database_principals

Relationship to sys.sysusers

sys.database_principals seems to list the same users as sys.sysusers. The following two queries return no record, at least on the Server and database I am currently working on:
select name from sys.database_principals except
select name from sys.sysusers;

select name from sys.sysusers except
select name from sys.database_principals;

See also

server_principals
Fixed database roles can be queried with select … from sys.database_principals where is_fixed_role = 1.
The sys schema
SQL Server: login

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...', 1740440813, '3.15.18.198', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/administration/schemas/sys/objects/views/database_principals(53): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78