Returns a row for each principal in a database.
Name of principal, unique within the database.
ID of principal, unique within the database.
S = SQL user
U = Windows user
G = Windows group
A = Application role
R = Database role
C = User mapped to a certificate
K = User mapped to an asymmetric key
Description of principal type.
Name to be used when SQL name does not specify schema. Null for principals not of type S, U, or A.
Time at which the principal was created.
Time at which the principal was last modified.
ID of the principal that owns this principal. All principals except Database Roles must be owned by dbo.
SID (Security Identifier) if the principal is defined external to the database (type S, U, and G). Otherwise, NULL.
If 1, then this row represents an entry for one of the fixed database roles: db_owner, db_accessadmin, db_datareader, db_datawriter, db_ddladmin, db_securityadmin, db_backupoperator, db_denydatareader, db_denydatawriter.
In SQL Server 2005 and later versions, the visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.