Collection Contents Index SET statement SET CONNECTION statement [ISQL][ESQL] pdf/chap9.pdf

Reference Manual
   CHAPTER 9. SQL Statements     

SET statement [T-SQL]


Function 

To set database options for the current connection, in an Adaptive Server Enterprise-compatible manner.

Syntax 

SET option-name option-value

Permissions 

None.

Side effects 

None.

See also 

SET OPTION statement

Description 

The available options are as follows:

Option name

Option value

ANSINULL

ON | OFF

ANSI_PERMISSIONS

ON | OFF

CLOSE_ON_ENDTRANS

ON | OFF

QUOTED_IDENTIFIER

ON | OFF

ROWCOUNT

integer

SELF_RECURSION

ON | OFF

STRING_RTRUNCATION

ON | OFF

TEXTSIZE

integer

TRANSACTION_ISOLATION_LEVEL

0 | 1 | 2 | 3

Database options in Adaptive Server Anywhere are set using the SET OPTION statement. However, Adaptive Server Anywhere also provides support for the Adaptive Server Enterprise SET statement for options that are particularly useful for compatibility.

The SET statement sets the option for the duration of the current connection only. It is equivalent to SET TEMPORARY OPTION.

The following options can be set using the Transact-SQL SET statement in Adaptive Server Anywhere as well as in Adaptive Server Enterprise:

In addition, the following SET statement is allowed by Adaptive Server Anywhere for compatibility, but has no effect:

Standards and compatibility 


Collection Contents Index SET statement SET CONNECTION statement [ISQL][ESQL] pdf/chap9.pdf