set_appcontext  list_appcontext

Chapter 17: Managing User Permissions

get_appcontext

Returns the value of the attribute in a specified context.

get_appcontext ("context_name", "attribute_name")

Examples

This example shows VALUE1 returned for ATTR1:

select get_appcontext ("CONTEXT1", "ATTR1")
-----------
VALUE1

ATTR1 does not exist in CONTEXT2:

select get_appcontext("CONTEXT2", "ATTR1")
------------
NULL

This example shows the result when a user without appropriate permissions attempts to get the application context:

select get_appcontext("CONTEXT1", "ATTR2")
select permisssion denied on built-in get_appcontext, database dbid
----------
-1

Usage





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

View this book as PDF