get_appcontext  rm_appcontext

Chapter 17: Managing User Permissions

list_appcontext

Lists all the attributes of all the contexts in the current session.

list_appcontext ("context_name")

Examples

To use list_appcontext, the user must have appropriate permissions. For more information, see “Setting permissions for using application context functions”.

This example shows the results of a user with appropriate permissions listing the application contexts:

select list_appcontext ("*", "*")
Context Name: (CONTEXT1)
Attribute Name: (ATTR1) Value: (VALUE2)
Context Name: (CONTEXT2)
Attribute Name: (ATTR1) Value: (VALUE!)
-----------
0

This example shows a user without appropriate permissions attempting to list the application contexts. The attempt fails, returning -1.

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

Usage





Copyright © 2005. Sybase Inc. All rights reserved. rm_appcontext

View this book as PDF