SET <system variable>

Advantage SQL Engine

Set the specified system variable or configuration to the specified value.

Syntax

SET <system variable> = expr

<system variable> ::= identifier

 

Remark

The SET <system variable> statement is used to change system configurations affecting the behavior of subsequent SQL statements. The <system variable> identifies the system configuration to modify and the expr designates how the configuration should change. The configurable system variables and their allowed values are the following:

::conn.collation This variable specifies the default collation for statements allocated on the connection. The expr should be a character expression and the accepted values are 'default_ansi', 'default_oem' or one of the known collation names. See ::stmt.collation for more information on the values.

::stmt.collation This variable specifies the collation language to use when executing subsequent statements on this statement handle. The expr should be a character expression and the accepted values are 'default', 'default_ansi', 'default_oem' or one of the known collation names. If 'default" is specified, the collation of the statement handle is set to the value of ::conn.collation. If 'default_ansi' or 'default_oem' is specified, the default ansi or oem collation of the server will be used.

See Also

System Variables