list_appcontext

Description

Lists all the attributes of all the contexts in the current session. list_appcontext is a built-in function provided by the Application Context Facility (ACF). For more information on ACF see "Row Level Access Control" in the System Administration Guide.

Syntax

list_appcontext (["context_name"])

Parameters

context_name

is an optional argument that names all the application context attributes in the session.

Examples

Example 1

This example shows the results when a user without appropriate permissions attempts to list the application contexts.

select list_appcontext ([context_name])

Context Name: (CONTEXT1)
Attribute Name: (ATTR1) Value: (VALUE2)
Context Name: (CONTEXT2)
Attribute Name: (ATTR1) Value: (VALUE1)

select list_appcontext()

Select permission denied on built-in list_appcontext, database DBID
--------
-1

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension

Permissions

Permissions depend on the user profile and the application profile, and are stored by ACF.

See also

Functions get_appcontext, list_appcontext, rm_appcontext, set_appcontext