Collection Contents Index General database options Replication options pdf/chap5.pdf

Reference Manual
   CHAPTER 5. Database Options     

Transact-SQLcompatibility options


The following options allow Adaptive Server Anywhere behavior to be made compatible with Adaptive Server Enterprise, or to support both old behavior and allow ISO SQL/92 behavior.

For further compatibility with Adaptive Server Enterprise, some of these options can be set for the duration of the current connection using the Transact-SQL SET statement instead of the Adaptive Server Anywhere SET OPTION statement. For a listing, see SET statement.

Default settings 

The default setting for some of these options differs from the Adaptive Server Enterprise default setting. For compatibility, you should explicitly set the options to ensure compatible behavior.

When a connection is made using the Open Client or JDBC interfaces, some option settings are explicitly set for the current connection to be compatible with Adaptive Server Enterprise. These options are listed in the following table.

For Info     For information on how the settings are made, see System and catalog stored procedures.

Option

Setting

ALLOW_NULLS_BY_DEFAULT

OFF

ANSI_BLANKS

ON

ANSINULL

OFF

CHAINED

OFF

CONTINUE_AFTER_RAISERROR

ON

DATE_FORMAT

YYYY-MM-DD

DATE_ORDER

MDY

ESCAPE_CHARACTER

OFF

FLOAT_AS_DOUBLE

ON

ISOLATION_LEVEL

1

CONDITIONAL

QUOTED_IDENTIFIER

OFF

TSQL_VARIABLES

ON

TSQL_HEX_CONSTANT

ON

TIME_FORMAT

HH:NN:SS.SSS

TIMESTAMP_FORMAT

YYYY-MM-DD HH:NN:SS.SSS

OPTION

VALUES

DEFAULT

ALLOW_NULLS_BY_DEFAULT option

ON, OFF

ON

ANSI_BLANKS option

ON, OFF

OFF

ANSI_CLOSE_CURSORS_ON_ROLLBACK option

ON, OFF

OFF

ANSI_INTEGER_OVERFLOW option

ON, OFF

ON

ANSINULL option

ON, OFF

ON

ANSI_PERMISSIONS option

ON, OFF

ON

AUTOMATIC_TIMESTAMP option

ON, OFF

OFF

CHAINED option

ON, OFF

ON

CLOSE_ON_ENDTRANS option

ON, OFF

ON

CONTINUE_AFTER_RAISE_ERROR option

ON,OFF

OFF

CONVERSION_ERROR option

ON,OFF

ON

DIVIDE_BY_ZERO_ERROR option

ON, OFF

OFF

FIRE_TRIGGERS option

ON, OFF

ON

FLOAT_AS_DOUBLE option

ON, OFF

OFF

NEAREST_CENTURY option

integer

50

NON_KEYWORDS option

comma-separated keywords list

No keywords turned off

PERCENT_AS_COMMENT option

ON, OFF

ON

QUERY_PLAN_ON_OPEN option

ON, OFF

OFF

QUOTED_IDENTIFIER option

ON, OFF

ON

RI_Trigger_time option

BEFORE, AFTER

AFTER

SQL_FLAGGER_ERROR_LEVEL option

E, I, F, W

W

SQL_FLAGGER_WARNING_LEVEL option

E, I, F, W

W

STRING_RTRUNCATION option

ON, OFF

OFF

TEXTSIZE option

integer

32765

TSQL_HEX_CONSTANT option

ON, OFF

OFF

TSQL_VARIABLES option

ON, OFF

OFF


Collection Contents Index General database options Replication options pdf/chap5.pdf