Table 10-12 lists the system procedures and functions to use to find information about roles and the section in this chapter that provides details.
To display information about |
Use |
See |
---|---|---|
The role ID of a role name |
role_id system function |
|
The role name of a role ID |
role_name system function |
|
System roles |
show_role system function |
|
Role hierarchies and roles that have been granted to a user or users |
sp_displayroles system procedure |
|
Whether one role contains another role in a role hierarchy |
role_contain system function |
|
Whether two roles are mutually exclusive |
mut_excl_roles system function |
|
Roles that are active for the current session |
sp_activeroles system procedure |
|
Whether you have activated the correct role to execute a procedure |
proc_role system function |
|
Logins, including roles that have been granted |
sp_displaylogin system procedure |
|
Permissions for a user, group, or role |
sp_helprotect system procedure |