mut_excl_roles

Description

Returns information about the mutual exclusivity between two roles.

Syntax

mut_excl_roles (role1, role2 [membership | activation])

Parameters

role1

is one user-defined role in a mutually exclusive relationship.

role2

is the other user-defined role in a mutually exclusive relationship.

level

is the level (membership or activation) at which the specified roles are exclusive.

Examples

Example 1

Shows that the admin and supervisor roles are mutually exclusive:

alter role admin add exclusive membership supervisor
select 
mut_excl_roles("admin", "supervisor", "membership")
-----------
          1

Usage

Standards

ANSI SQL – Compliance level: Transact-SQL extension

Permissions

Any user can execute mut_excl_roles.

See also

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

Functions proc_role, role_contain, role_id, role_name

System procedures sp_activeroles, sp_displayroles, sp_role