---
title: LogDatabaseRecovery System Parameter – Recovery Model for Log Databases
description: LogDatabaseRecovery sets the SQL Server recovery model (SIMPLE or FULL) for new Nodinite Log Databases. The installer sets FULL for Always On Availability Groups and SIMPLE otherwise.
---

# LogDatabaseRecovery - System Parameter

**LogDatabaseRecovery** sets the SQL Server recovery model, `SIMPLE` or `FULL`, that the [Logging Service][] gives each new [Log Database][Log Databases]. The Log Database [Update Guide][Update Log Database] also uses it when it generates update scripts. It is one of the [System Parameters][] applied in [How a new Log Database is created][].

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `LogDatabaseRecovery` |
| Data type | string (`SIMPLE` or `FULL`) |
| Default | `SIMPLE`; the installer sets `FULL` for [Always On Availability Groups][AOAG] |
| Read by | [Logging Service][]; the [Update Guide][Update Log Database] for [Log Databases][] |
| Takes effect | Within about 15 seconds; no restart needed. Applies to the next [Log Database][Log Databases] the [Logging Service][] creates and the next update script. |
| Status | ✅ Active |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

The CLI-based <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> installer sets the value from your SQL Server environment:

| SQL Server environment | Value |
| --- | --- |
| Always On Availability Group (AOAG) | `FULL` |
| Standalone, including failover cluster | `SIMPLE` |

* The Logging Service creates every **new** Log Database with this recovery model, except in an [Always On Availability Group][AOAG]: there it always uses `FULL`, whatever this value is.
* The [Update Guide][Update Log Database] includes the matching recovery setting in the scripts it generates for existing Log Databases.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Changing the value does not change the recovery model of existing Log Databases.</p></div>
</aside>

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* Use `FULL` when the Log Databases are in an [Always On Availability Group][AOAG], so the value matches what the Logging Service uses there and what the [Update Guide][Update Log Database] scripts set. Also set [AvailabilityGroupBackupPath][].
* Use `SIMPLE` on a standalone instance or a failover cluster, unless your backup policy needs point-in-time restore.
* With `FULL`, your DBA must schedule transaction log backups, or the transaction log keeps growing. [LogLocations][] decides which disk holds it.
* If an existing Log Database uses a different recovery model than this value, change the value **before** you retrieve an update script; see [Update Log Database][].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-list" aria-hidden="true"></i> [Manage Log Databases][]  
* <i class="fal fa-book" aria-hidden="true"></i> [Update Log Database][]  
* <i class="fal fa-server" aria-hidden="true"></i> [Always On Availability Groups][AOAG]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-sort-size-up-alt" aria-hidden="true"></i> [SizeToSplitDatabaseOn][]  
* <i class="fal fa-calendar-day" aria-hidden="true"></i> [DaysToSplitDatabaseOn][]  
* <i class="fal fa-database" aria-hidden="true"></i> [LogDatabaseName][]  
* <i class="fal fa-disc-drive" aria-hidden="true"></i> [LogLocations][]  
* <i class="fal fa-user-secret" aria-hidden="true"></i> [LogAccessRoles][]  
* <i class="fal fa-users-class" aria-hidden="true"></i> [LogServiceUsers][]  
* <i class="fal fa-server" aria-hidden="true"></i> [AvailabilityGroupBackupPath][]  
* <i class="fal fa-tools" aria-hidden="true"></i> [DatabaseMaintenance][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters][]  

[AOAG]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/always-on-availability-groups/
[AvailabilityGroupBackupPath]:https://docs.nodinite.com/administration/settings/system-parameters/availabilitygroupbackuppath/
[DatabaseMaintenance]:https://docs.nodinite.com/administration/settings/system-parameters/databasemaintenance/
[DaysToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/daystosplitdatabaseon/
[How a new Log Database is created]:https://docs.nodinite.com/administration/settings/system-parameters/sizetosplitdatabaseon/#how-a-new-log-database-is-created
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[LogAccessRoles]:https://docs.nodinite.com/administration/settings/system-parameters/logaccessroles/
[LogDatabaseName]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabasename/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogLocations]:https://docs.nodinite.com/administration/settings/system-parameters/loglocations/
[LogServiceUsers]:https://docs.nodinite.com/administration/settings/system-parameters/logserviceusers/
[Manage Log Databases]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[SizeToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/sizetosplitdatabaseon/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Update Log Database]:https://docs.nodinite.com/administration/settings/log-databases/update-log-database/