Transaction Isolation Levels
read consistency and locking semantics
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
SET TRANSACTION ISOLATION LEVEL { READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SNAPSHOT | SERIALIZABLE }
Work example
A read needs a stated balance between blocking and seeing changes from other transactions.
Choose isolation from the consistency requirement. Test concurrent readers and writers with separate sessions in a disposable database.
Check your work Transaction Isolation Levels. The observed rows match the chosen isolation rule and the session setting is restored after the exercise.
Open Microsoft Learn for full syntax, permissions, and details for your version.