SET Statement (set_statement) Locate the document in its SAP Library structure

The SET statement alters the properties of a database session.

Syntax

<set_statement> ::= SET ROLE ALL [EXCEPT <role_name>] | SET ROLE NONE
| SET ROLE <role_name> [IDENTIFIED BY <password>]
| SET ISOLATION LEVEL <unsigned_integer>

role_name, password, unsigned_integer

Explanation

SET ROLE

DEFAULT ROLE in the ALTER USER statement or ALTER USERGROUP statement specifies which of the roles assigned to the current user or user group is active in the user session or group member session. If a role is active, the current user has all the privileges that are included in the role.

If a role that is activated automatically when a session is opened is assigned to the current user with the alter user statement or ALTER USERGROUP statement, it is deactivated when the set statement is executed if it is not identified by the SET ROLE specification in the set statement.

ISOLATION LEVEL

Specifying an Structure linkisolation level changes the Structure linklock behavior for all subsequent SQL statements of the current database session.

The isolation level is set using an integer without a plus/minus sign after the keywords ISOLATION LEVEL. The following values are permissible: 0, 1, 2, 3, 10, 15, 20, and 30.