SQL Flow Field Guide

SET TRANSACTION ISOLATION LEVEL

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

read consistency for following reads (READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SNAPSHOT, SERIALIZABLE)

What changes

Input
none
Output or change
session state

Syntax at a glance

SET TRANSACTION ISOLATION LEVEL { READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SNAPSHOT | SERIALIZABLE }

Work example

A session workflow needs the specific behavior of SET TRANSACTION ISOLATION LEVEL for a bounded operation.

Record the starting session state, set the option only for the operation, and restore the documented default before returning a pooled connection.

Check your work SET TRANSACTION ISOLATION LEVEL. The operation follows the intended SET TRANSACTION ISOLATION LEVEL behavior and the next task sees the expected session state.

Open Microsoft Learn for full syntax, permissions, and details for your version.