sp_activeroles

Description

Displays all active roles.

Syntax

sp_activeroles [expand_down]

Parameters

expand_down

shows the hierarchy tree of all active roles contained by your roles.

Examples

Example 1

sp_activeroles
Role Name
------------------------------
sa_role
sso_role
oper_role
replication_role 

Example 2

sp_activeroles expand_down
Role Name       Parent Role Name               Level
-------------------------------- -------------------
sa_role         NULL                              1
doctor_role     NULL                              1
oper_role       NULL                              1

Usage

Permissions

Any user can execute sp_activeroles.

See also

Documents For information about creating, managing, and using roles, see the System Administration Guide.

Commands alter role, create role, drop role, grant, revoke, set

Functions mut_excl_roles, proc_role, role_contain, role_name

System procedures sp_displayroles