role_id

Returns the role ID of the specified role name.

Syntax

role_id("role_name")

Parameters

Examples

Usage

  • role_id, a system function, returns the system role ID (srid). System role IDs are stored in the srid column of the syssrvroles system table.

  • If the role_name is not a valid role in the system, the SAP ASE server returns NULL.

See also:
  • Roles – see the System Administration Guide

  • System functions – see Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute role_id.

Related reference
mut_excl_roles
proc_role
role_contain
role_name