GET OPTION statement [ESQL]
GET OPTION statement [ESQL]
Function
Syntax
Permissions
Side effects
See also
Description
Standards and
compatibility
Example
538
Use this statement to get the current setting of an option. This statement is
deprecated in favor of system functions.
GET OPTION [ userid .] option-name
...[ INTO host-variable ]
...[ USING DESCRIPTOR sqlda-name ]
userid:
identifier, string, or host-variable
option-name:
identifier, string, or host-variable
host-variable:
indicator variable allowed
sqlda-name:
identifier
None required.
None.
"SET OPTION statement" on page 612
"System and catalog stored procedures" on page 963
"CONNECTION_PROPERTY function " on page 321
The GET OPTION statement is provided for compatibility with older
versions of the software. The recommended way to get the values of options
is to use the connection_property system function.
The GET OPTION statement gets the option setting of the option option-
name for the user userid or for the connected user if userid is not specified.
This will be either the user's personal setting or the PUBLIC setting if there
is no setting for the connected user. If the option specified is a database
option and the user has a temporary setting for that option, then the
temporary setting is retrieved.
If option-name does not exist, GET OPTION returns the warning
SQLE_NOTFOUND.
♦
SQL/92
Vendor extension.
♦
Not supported by Adaptive Server Enterprise.
Sybase
♦
The following statement illustrates use of GET OPTION.
EXEC SQL GET OPTION 'date_format' INTO :datefmt;
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers