This documentation is archived and is not being maintained.

sys.database_role_members (Transact-SQL)

Returns one row for each member of each database role.

Column name Data type Description

role_principal_id

int

Database Principal ID of the role.

member_principal_id

int

Database Principal ID of the member.

Show: