Controls the locking isolation level.
Allowed values0, 1, 2, 3, Snapshot, Statement-snapshot, Readonly-statement-snapshot
Default0
1 for Sybase Open Client, jConnect, and TDS connections
ScopeCan be set for an individual connection or for the PUBLIC group. Takes effect immediately.
RemarksThis option controls the locking isolation level as follows:
0 Allow dirty reads, non-repeatable reads, and phantom rows.
1 Prevent dirty reads. Allow non-repeatable reads and phantom rows.
2 Prevent dirty reads and non-repeatable reads. Allow phantom rows.
3 Serializable. Prevent dirty reads, non-repeatable reads, and phantom rows.
Snapshot Use a snapshot of committed data from the time when the first row is read or updated by the transaction.
Statement-snapshot For each statement, use a snapshot of committed data from the time when the first row is read from the database. Non-repeatable reads and phantom rows can occur within a transaction, but not within a single statement.
Readonly-statement-snapshot For read-only statements, use a snapshot of committed data from the time when the first row is read from the database. Non-repeatable reads and phantom rows can occur within a transaction, but not within a single statement. For updatable statements, use the isolation level specified by the updatable_statement_isolation option (can be one of 0 (the default), 1, 2, or 3).
The allow_snapshot_isolation option must be set to On to use the Snapshot, Statement-snapshot, or Readonly-statement-snapshot settings.
If you are using the SQL Anywhere JDBC driver, the default isolation level is 0.
Queries running at isolation level Snapshot, Statement-snapshot, or Readonly-statement-snapshot see a snapshot of a committed state of the database.
You can override any temporary or public settings for this option within individual INSERT, UPDATE, DELETE, SELECT, UNION, EXCEPT, and INTERSECT statements by including an OPTION clause in the statement.
See also![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |
