Finding the status of the current transaction mode  Default isolation levels for Adaptive Server and ANSI SQL

Chapter 20: Transactions: Maintaining Data Consistency and Recovery

Choosing an isolation level

The ANSI SQL standard defines four levels of isolation for transactions. Each isolation level specifies the kinds of actions that are not permitted while concurrent transactions are executing. Higher levels include the restrictions imposed by the lower levels:

You can set the isolation level for your session by using the transaction isolation level option of the set command. You can enforce the isolation level for only a single query as opposed to using the at isolation clause of the select statement. For example:

set transaction isolation level 0




Copyright © 2005. Sybase Inc. All rights reserved. Default isolation levels for Adaptive Server and ANSI SQL

View this book as PDF