I am using V12 Azure SQL .
To list all logins ( server level ), we can use this query in the master database:
SELECT * FROM sys.sql_logins;
To list all users ( database level ), we can use this query in a specific database :
SELECT * FROM sys.sysusers;
But how to get correspondence between logins and users ?
Where does the system table store this correspondence?
source share