Set Statement [T-Sql] - Sybase Adaptive Server Anywhere Reference

Table of Contents

Advertisement

SET statement [T-SQL]

Function
Syntax
Permissions
Side effects
See also
Description
Use this statement to set database options for the current connection in an
Adaptive Server Enterprise-compatible manner.
SET option-name option-value
None.
None.
"SET OPTION statement" on page 612
"Setting options for Transact-SQL compatibility" on page 969 of the book
ASA User's Guide
"Transact-SQL and SQL/92 compatibility options" on page 163
The available options are as follows:
Option name
ANSINULL
ANSI_PERMISSIONS
CLOSE_ON_ENDTRANS
QUOTED_IDENTIFIER
ROWCOUNT
SELF_RECURSION
STRING_RTRUNCATION
TEXTSIZE
TRANSACTION ISOLATION LEVEL
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 following options can be set using the Transact-SQL SET statement in
Adaptive Server Anywhere as well as in Adaptive Server Enterprise:
SET ANSINULL { ON | OFF }
values to NULL in Adaptive Server Anywhere and Adaptive Server
Enterprise is different. Setting ANSINULL to OFF provides Transact-
SQL compatible comparisons with NULL.
Chapter 9 SQL Statements
Option value
ON | OFF
ON | OFF
ON | OFF
ON | OFF
integer
ON | OFF
ON | OFF
integer
0 | 1 | 2 | 3
The default behavior for comparing
607

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents