SET Statement [T-SQL]

Sets database options in an Adaptive Server Enterprise-compatible manner.

Syntax

SET option-name option-value

option-value:
   ANSINULL [ ON | OFF ]
   | ANSI_PERMISSIONS [ ON | OFF ]
   | CLOSE_ON_ENDTRANS ON 
   | QUOTED_IDENTIFIER [ ON | OFF ]
   | ROWCOUNT integer
   | STRING_RTRUNCATION [ ON | OFF ]
   | TRANSACTION ISOLATION LEVEL [ 0 | 1 | 2 | 3 ]

Parameters

Usage

Database options in SAP Sybase IQ are set using the SET OPTION statement. However, SAP Sybase IQ also provides support for the Adaptive Server Enterprise SET statement for a set of options particularly useful for compatibility.

Standards

  • SQL—Transact-SQL extension to ISO/ANSI SQL grammar.

  • Sybase—SAP Sybase IQ supports a subset of the Adaptive Server Enterprise database options.

Permissions

None

Related reference
SET OPTION Statement