READ_COMMITTED_SNAPSHOT
Make READ COMMITTED use row versions instead of shared locks.
- Predeterminado
OFF- Range
- ON, OFF
- Restart needed
- No
- Default checked on
- SQL Server 2025
Lo que hace
With it on, readers see the last committed version of a row and do not block writers or get blocked by them. Versions are kept in tempdb (or in the database with ADR). It is ON by default in Azure SQL Database.
Valor predeterminado
OFF. OFF (SQL Server 2025); ON in Azure SQL Database.
Check the current value
SELECT name, is_read_committed_snapshot_on FROM sys.databases WHERE name = DB_NAME();
Change it
ALTER DATABASE CURRENT SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;
No restart, but the switch needs the database to itself: other connections must be closed or rolled back (WITH ROLLBACK IMMEDIATE).
When to change it
On most OLTP databases suffering reader/writer blocking; it is what PostgreSQL and Oracle do by default.
What can go wrong
Code that relied on blocking reads (read-then-update without UPDLOCK) can race; tempdb usage grows with long transactions.
Questions about READ_COMMITTED_SNAPSHOT
What is the default value of READ_COMMITTED_SNAPSHOT in SQL Server?
OFF. OFF (SQL Server 2025); ON in Azure SQL Database.
Does changing READ_COMMITTED_SNAPSHOT require a restart?
No. No restart, but the switch needs the database to itself: other connections must be closed or rolled back (WITH ROLLBACK IMMEDIATE).
When should I change READ_COMMITTED_SNAPSHOT?
On most OLTP databases suffering reader/writer blocking; it is what PostgreSQL and Oracle do by default.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Related on SQLly
Check READ_COMMITTED_SNAPSHOT on your own server
SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.