SQL Flow Field Guide

Transaction Isolation Levels

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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.