Chapter 4: Querying and Setting Operating Values  Issuing set statements

Chapter 4: Querying and Setting Operating Values

Querying global variables

A user or client application can query a global variable to find the property and processing values that affect that client connection.

A global variable represents one of the following:

Global variables are preceded by two “@@” characters and are not case sensitive. To query a global variable, issue a SQL statement in the form:

select @@variable_name

where variable_name is the name of the relevant global variable.

Other rules that apply are as follows:

Example

The following is an SQL statement to query a global variable for the Client Interaction property, SendWarningMessages:

select @@SendWarningMessages




Copyright © 2005. Sybase Inc. All rights reserved. Issuing set statements

View this book as PDF