SET Statement [T-SQL]

Sets database options in an Adaptive Server-compatible manner.

Quick Links:

Go to Parameters

Go to Usage

Go to Standards

Go to Permissions

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

(back to top)

Usage

(back to top)

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

Standards

(back to top)

  • SQL—Transact-SQL extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—SAP Sybase IQ supports a subset of the Adaptive Server database options.

Permissions

(back to top)

None

Related reference
SET OPTION Statement