RECOVERY
Recovery model: whether the transaction log is kept for log backups (FULL, BULK_LOGGED) or truncated at checkpoints (SIMPLE).
- 預設
Inherited from model- Range
- FULL, BULK_LOGGED, SIMPLE
- Restart needed
- 否
- Default checked on
- SQL Server 2025
其作用
In FULL, log space is reused only after a log backup, which allows point-in-time restore. In SIMPLE, the log truncates at checkpoints and only full and differential backups exist.
預設值
Inherited from model. New databases copy the model database, and model ships in FULL recovery on SQL Server 2025 Developer, so new databases start in FULL.
Check the current value
SELECT name, recovery_model_desc FROM sys.databases WHERE name = DB_NAME();
Change it
ALTER DATABASE CURRENT SET RECOVERY FULL; BACKUP DATABASE SalesDb TO DISK = N'SalesDb.bak'; -- SalesDb: your database name; this starts the log chain
No restart. Switching from SIMPLE to FULL takes effect for point-in-time purposes only after the next full or differential backup starts the log chain.
When to change it
Use FULL with scheduled log backups for any database that needs point-in-time recovery; SIMPLE for dev, staging and data you can reload.
What can go wrong
FULL without log backups is the classic cause of a log file that grows until the disk fills (log_reuse_wait_desc = LOG_BACKUP).
Questions about RECOVERY
What is the default value of RECOVERY in SQL Server?
Inherited from model. New databases copy the model database, and model ships in FULL recovery on SQL Server 2025 Developer, so new databases start in FULL.
Does changing RECOVERY require a restart?
No. No restart. Switching from SIMPLE to FULL takes effect for point-in-time purposes only after the next full or differential backup starts the log chain.
When should I change RECOVERY?
Use FULL with scheduled log backups for any database that needs point-in-time recovery; SIMPLE for dev, staging and data you can reload.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check 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.