---
title: Update Nodinite Log Databases – Update Guide for Nodinite v7
description: "How Nodinite v7 updates Log Databases: the CLI updates the Core Services and Configuration Database, and the Update Guide in the Web Client generates the SqlPackage scripts for the active and archive Log Databases. Includes System Parameters to review and common failure causes."
---

# How do I Update a Nodinite Log Database?

Keep your :Nodinite: [Log Databases][] secure, compliant, and up to date with the latest features and performance improvements. In :Nodinite: v7, updating is a two-part job:

| Part | What is updated | How |
| --- | --- | --- |
| 1. Core Services | The [Core Services][] and the [Configuration Database][ConfigDB] | The CLI package from the [Nodinite Portal][NodinitePortal]<sup>:fa-arrow-up-right-from-square:</sup>; see [Updating Nodinite v7][Updating Nodinite v7] |
| 2. Log Databases | The schema of the online and archive Log Databases | The Update Guide in the [Web Client][], see [Update Log Database][] (:Nodinite: 7.2.0 and later) |

>[!IMPORTANT]
>After every Core Services update, open **Administration › Settings › [Log Databases][Log Databases Admin]** in the Web Client. When the page reports that a schema update is available, run the [Update Log Database][] guide.

## :fa-gears: Why Log Databases Are Updated Separately

The CLI doesn't update Log Databases, because a schema update of large or many databases needs planning:

* **Disk space** – schema updates and index rebuilds need free space for data and transaction log growth.  
* **Long processing times** – an update can take minutes to hours per database, depending on size and disk I/O.  
* **System resources** – updates consume CPU, memory, and disk I/O; run them in a maintenance window.  
* **Distributed environments** – archive Log Databases may live on other SQL Server instances, networks, and security zones.  

The [Update Log Database][] guide stops the [Logging Service][] and [Monitoring Service][], sets archive databases read-only, generates one `SqlPackage.exe` script for the online Log Database and one for the archives, and walks you through running them and restarting the services.

## :fa-sliders: System Parameters to Review Before You Update

| [System Parameter][System Parameters] | Why it matters for the update |
| --- | --- |
| [LogDatabaseRecovery][] | The generated scripts use this recovery model (`SIMPLE` or `FULL`). On an [Always On Availability Group][AlwaysOn] it must be `FULL`. Set it **before** you generate the scripts. |
| [SqlPackageExecutable][] | The path to `SqlPackage.exe` in the generated scripts. Use the latest DacFx version. |
| [SqlPackageParams][] | The connection encryption and certificate-trust options the Logging Service uses for new Log Databases; the generated scripts contain the same kind of options. |
| [LogLocations][] | File placement of Log Databases; make sure the folders still exist and have free space. |
| [DatabaseMaintenance][] | Reindexes and shrinks archive Log Databases after the update, which reclaims disk space. |

The `SqlPackage.exe` path used by the CLI for the [Configuration Database][ConfigDB] is set separately in the Portal, [Step 3: Infrastructure][Portal SqlPackage].

## :fa-question: Frequently Asked Questions

Find more answers in the :Nodinite: [Log Databases][] [Troubleshooting][] guide.

### Which account runs the update scripts?

Run the scripts as the [Logging Service][] account; that also verifies the account still has the rights it needs to create new Log Databases. Otherwise use an account in the SQL Server **sysadmin** role on every instance that hosts a Log Database. If your DBA policy doesn't allow permanent `sysadmin`, follow [SQL Server Sysadmin Requirements][].

### Why does my update script fail?

The [Update Log Database][] guide lists common errors and solutions. Also check:

* **SqlPackage not installed or outdated** – install the latest [Microsoft SqlPackage](https://learn.microsoft.com/sql/tools/sqlpackage/sqlpackage-download)<sup>:fa-arrow-up-right-from-square:</sup> on the server that runs the script.  
* **Wrong paths** – the `SqlPackage.exe` and `.dacpac` paths in the script must exist on the server that runs it; adjust them when you run the script on another server.  
* **Disk space** – free space for schema changes, index rebuilds, and transaction log growth.  
* **Recovery model mismatch** – set [LogDatabaseRecovery][] to the model your SQL Server uses **before** you generate the scripts.  
* **Always On Availability Groups** – see [Always On Availability Groups][AlwaysOn] and the AOAG scenario in the [Update Log Database][] guide.  

>[!WARNING]
>Always test update scripts in a **non-production environment** first, and back up all databases before you run them. :fa-database:

### How do I free disk space taken by old Log Databases?

:Nodinite: doesn't remove old [Log Databases][] automatically. To clean up historical databases, use [Automating removal of old Log Databases][Automate Removal].

>[!NOTE]
>:Nodinite: v6 is no longer supported. To move an existing v6 installation, follow [Updating from v6 to v7][].

## :fa-hand-point-right: Next Steps

* :fa-book: [Update Log Database][]  
* :fa-arrow-turn-up: [Updating Nodinite v7][Updating Nodinite v7]  
* :fa-file-alt: [Nodinite 7 Release notes][Release Notes]<sup>:fa-arrow-up-right-from-square:</sup>  

## :fa-link-horizontal: Related Topics

* :fa-database: [Log Databases Overview][Log Databases]  
* :fa-database: [Log Databases administration][Log Databases Admin]  
* :fa-database: [Install Log Databases][2. Install]  
* :fa-database: [Prerequisites][]  
* :fa-database: [Uninstall Log Databases][Uninstall]  
* :fa-question: [Log Databases Troubleshooting][Troubleshooting]  
* :fa-database: [Update Configuration Database][Update ConfigDB]  
* :fa-hard-drive: [Logging Service][]  
* :fa-sliders: [System Parameters][]  

[2. Install]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/2.%20Install.md
[AlwaysOn]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Always%20On%20Availability%20Groups.md
[Automate Removal]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Automating%20removal%20of%20old%20Log%20Databases.md
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[DatabaseMaintenance]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DatabaseMaintenance.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Admin]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[LogDatabaseRecovery]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseRecovery.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogLocations]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogLocations.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[NodinitePortal]:https://portal.nodinite.com/
[Portal SqlPackage]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/03%20-%20Infrastructure.md#install-options-sqlpackage-and-dacpac-tooling
[Prerequisites]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/1.%20Prerequisites.md
[Release Notes]:https://portal.nodinite.com/marketplace/36
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[SqlPackageExecutable]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlPackageExecutable.md
[SqlPackageParams]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlPackageParams.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Troubleshooting]:{ndr}/Core%20Services/Log%20Databases/Troubleshooting/Overview.md
[Uninstall]:{ndr}/Core%20Services/Log%20Databases/Troubleshooting/Uninstall.md
[Update ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Updating.md
[Update Log Database]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Update%20Log%20Database.md
[Updating from v6 to v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Updating%20from%20v6%20to%20v7.md
[Updating Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[Web Client]:{ndr}/Getting%20Started/Overview.md