ACCELERATED_DATABASE_RECOVERY
Accelerated database recovery (ADR): near-instant rollback and crash recovery using a persistent version store.
- По умолчанию
OFF- Range
- ON, OFF (optionally WITH PERSISTENT_VERSION_STORE_FILEGROUP)
- Restart needed
- Нет
- Default checked on
- SQL Server 2025
Что оно делает
Row versions are kept in the database itself, so a long transaction can be rolled back without undoing it record by record, and the log can be truncated past active transactions. Available from SQL Server 2019; always on in Azure SQL Database.
Значение по умолчанию
OFF. OFF (SQL Server 2025).
Check the current value
SELECT name, is_accelerated_database_recovery_on FROM sys.databases WHERE name = DB_NAME();
Change it
ALTER DATABASE CURRENT SET ACCELERATED_DATABASE_RECOVERY = ON;
No restart, but it needs exclusive access to the database to switch, so other sessions must be out or rolled back.
When to change it
Databases where long-running transactions get killed and then take ages to roll back, or where the log cannot truncate because of an old open transaction.
What can go wrong
The persistent version store takes space in the data files and adds some write overhead; monitor sys.dm_tran_persistent_version_store_stats.
Questions about ACCELERATED_DATABASE_RECOVERY
What is the default value of ACCELERATED_DATABASE_RECOVERY in SQL Server?
OFF. OFF (SQL Server 2025).
Does changing ACCELERATED_DATABASE_RECOVERY require a restart?
No. No restart, but it needs exclusive access to the database to switch, so other sessions must be out or rolled back.
When should I change ACCELERATED_DATABASE_RECOVERY?
Databases where long-running transactions get killed and then take ages to roll back, or where the log cannot truncate because of an old open transaction.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check ACCELERATED_DATABASE_RECOVERY 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.