---
title: "Add or Manage a Log Database: Register, Move, Set Read-Only, and Delete in Nodinite"
description: "Register, edit, move, set read-only, and delete Nodinite Log Databases from the Web Client: what each field means, how remote and Always-On Log Databases are configured, and the safe order for removing an empty archive Log Database."
---

# <i class="fal fa-database" aria-hidden="true"></i> Add or manage a Nodinite Log Database

Add, manage, move, and delete Log Database registrations in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> to keep log data storage secure, efficient, and scalable. This guide helps administrators configure SQL Server settings, use cheaper storage for old data, and stay compliant.

* ✅ Add, edit, move, and delete Log Databases without touching physical SQL data  
* ✅ Flexible configuration for [SQL Server][SQL Server Options], Always-On, and linked servers  
* ✅ Read-only mode for compliance and safe archiving  
* ✅ [Administration][] from the [Web Client][]  

The registration tells <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> where each physical [Log Database][Log Databases] is. You don't touch the physical database within the Microsoft SQL Server instance in any way when you **add** or **remove** a registration from within the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][]. The physical database is created by the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Logging Service][] (governed by [SizeToSplitDatabaseOn][] and [DaysToSplitDatabaseOn][]) or by [creating it manually][Create new Log Databases Manually].

Use the administration pages in the Web Client to:

* Change the location information after moving a database from one SQL Server instance to another, for example to a SQL Server hotel where disk is cheaper, or to use hardware resources better. Renaming a Log Database is also possible.  
* Register an archive Log Database that was moved or restored.  
* Set an archive Log Database read-only.  
* Safely [delete](#fa-trash-can-delete-log-database) empty archive databases.  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>Updating database schemas:</strong> when <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> releases a new version with schema improvements, use the <a href="https://docs.nodinite.com/administration/settings/log-databases/update-log-database/">Update Log Database</a> wizard. It handles service pauses, recovery models, and DACPAC deployment. <strong>Don't apply schema changes manually.</strong></p></div>
</aside>

## <i class="fal fa-arrows-spin" aria-hidden="true"></i> Understanding the Log Database lifecycle

Each Log Database moves through the same stages. The Web Client registration follows it all the way, and only the last step happens outside <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.

<div class="mermaid">
graph LR
    A["fa:fa-plus Created<br/>Logging Service or manually"] --> B["fa:fa-database Online<br/>receives new events, no End Date"]
    B -->|"next Log Database created"| C["fa:fa-box-archive Archive<br/>searched from Log Views"]
    C -->|"optional"| D["fa:fa-lock Read-only<br/>no maintenance or deletes"]
    C -->|"retention empties it"| E["fa:fa-trash-can Empty<br/>delete the registration"]
    D --> E
    E -->|"SSMS"| F["fa:fa-ban Physical database dropped"]
    style A fill:#2678BD,color:#fff
    style B fill:#93d16d,color:#000
    style C fill:#3F827B,color:#fff
    style D fill:#9E59BB,color:#fff
    style E fill:#FFD525,color:#000
    style F fill:#c33d34,color:#fff
</div>

*Green: the single online [Log Database][Log Databases]. Teal and purple: archive and read-only archive databases. Yellow: empty, ready for removal. Red: the irreversible drop, done in SQL Server Management Studio.*

How fast an archive Log Database empties depends on the retention [System Parameters][], for example [DaysToKeepMessageEventsDefault][] and [DaysToKeepMessageDataDefault][], applied by the Logging Service cleanup every [CleanUpTimerInterval][].

## <i class="fal fa-pen-square" aria-hidden="true"></i> Instructions

A **name** for the [Log Database][Log Databases] is mandatory. To insert new [Log Events][Log Event], <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> must always know about at least one Log Database.

The **Add Log Database** page and the edit page have these fields:

* **Database** (the name)  
* [Linked Server / Listener Name][Linked Servers] (might include the instance name)  
* **Remote server**  
* **Read-only**  
* **Archive Database** (on Add only)  
* **Start date-time** and **End date-time**  
* **Description**  

![Add Log Database page filled in for a restored archive, with Archive Database ticked and no date fields (7.12)][1]  
*Add Log Database is a page, not a dialog. Fields marked with one star are required; fields marked with two stars can only be changed after the End date has passed.*  

### <i class="fal fa-box-archive" aria-hidden="true"></i> Register a restored archive

![Register the restored archive Nodinite_DEV_Log_20221228 as a read-only archive Log Database, animated walkthrough (7.12)][7]  
*Animated walkthrough: the dates come from the database itself.*  

1. On the Log Databases page, click **Add Log Database**.
2. Enter **Database**, here *Nodinite_DEV_Log_20221228*, and **Linked Server / Listener Name**, here `localhost`.
3. **Archive Database** is ticked by default, so the date fields are hidden. Tick **Read-only** and add a **Description**.
4. Click **Save and close**. The list shows the registration with the Start and End Date of its events.

### <i class="fal fa-pen" aria-hidden="true"></i> Edit a registration

![Open an archive Log Database, change its Description, and save, animated walkthrough (7.12)][8]  
*Animated walkthrough: only the registration changes, never the database itself.*  

1. Click the name of the Log Database in the list, or choose **Edit** from its **Action** menu.
2. Change what you need, here the **Description**. **Start date-time** and **End date-time** are read-only once saved.
3. Click **Save and close**. The list shows the change.

### Database

Enter the database **name**. This field is required to create the Log Database configuration.

The name follows the [LogDatabaseName][] pattern, by default `Nodinite_<EnvironmentName>_Log_{year}{month}{day}`, for example **Nodinite_Prod_Log_20251028**. Databases upgraded from older versions keep their original names. See [Log Database Naming][] for how the pattern is built from [EnvironmentName][]. <sup><span class="nodinite-new-badge">New 7.12</span></sup> The hint under **Database** explains the pattern: the [Logging Service][] replaces `{year}`, `{month}`, and `{day}` with the date (UTC) it creates the database, not with its start date, so `Nodinite_DEV_Log_{year}{month}{day}` gives *Nodinite_DEV_Log_20241113* for a database created on 13 November 2024; use the same pattern for a database you add by hand.

![Edit page of the online Log Database with the Database hint explaining the LogDatabaseName pattern and the End date-time hint (7.12)][10]  
*The Database hint, and the End date-time hint saying only an archive Log Database (its End date has passed) can be deleted.*  

### Linked Server / Listener Name

Add the name of the target SQL Server instance. The database must exist on that server, and the pair of **Database** and **Linked Server / Listener Name** must be unique.

* If the Log Database is located on the same server as the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Configuration Database][ConfigDB], use `localhost` or `localhost\instancename`.  
* Otherwise, enter the name of the [linked server][Linked Servers]. Remote Log Databases are always accessed through linked servers. The [SqlServer][] System Parameter holds the linked server name <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> uses for Log Databases.  

### Read-Only

Check this checkbox to make the Log Database **read-only**. When checked, there is no internal maintenance (see [DatabaseMaintenance][]), and operations like re-index, delete/truncate, or insert are suspended. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> still searches the database from [Log Views][].

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The Read-Only flag can only be checked for an archive Log Database: on Add, <strong>Archive Database</strong> must be ticked, and on edit, its End date must have passed. The online Log Database can never be read-only.</p></div>
</aside>

### Remote Server

In relation to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Configuration Database][ConfigDB], check the checkbox if the Log Database is located on a remote SQL Server instance.

**Remote** Log Databases **require** a [linked server][Linked Servers] between the SQL Server instance with the Configuration Database and the remote Log Database.

### Archive Database

**Archive Database** is ticked by default on Add. Keep it ticked when you register an older Log Database, for example one you moved or restored: the date fields are hidden, and <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> sets the start and end time from the oldest and newest Log Event, [Log Audit][Log Audits], or [Monitor Event][Monitor Events] in it. A database without data is refused (*The database contains no data and should not be added*).

Untick it to register a future Log Database with a **Start date-time**, for example one you [created manually][Create new Log Databases Manually]. That sets the End Date of the current online Log Database to the new Start date-time, so the new one becomes the online Log Database. Only one Log Database can lack an End Date.

### Start date-time

For an archive Log Database, this is the start date for [Log Events][Log Event]. For a future Log Database (for example one you [created manually][Create new Log Databases Manually]), this value makes sure future events enter the correct target database when the time comes.

![Start date-time and End date-time of an existing archive Log Database, both read-only (7.12)][2]  
*Both dates are read-only once the registration is saved. The End date-time is set from the Start date of the next Log Database, or left empty for the online one.*  

### End date-time

For an archive Log Database, this is the end date for Log Events in that particular database. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> sets it from the Start date of the next Log Database.

The online Log Database has no End date-time until a next Log Database is planned. Planning one (see [Archive Database](#archive-database)) gives the online Log Database a planned End date-time in the future; it stays online and keeps receiving new events until then. The last Log Database, the online or the planned one, never has an End date-time.

![Start date-time and End date-time of the online Log Database with a planned End date-time of 2026-12-18 (7.12)][12]  
*The online Log Database with a planned End date-time: it stays online until then and has no **Delete** button.*  

### Description

The optional field **Description** gives this configuration a user-friendly meaning.

## <i class="fal fa-trash-can" aria-hidden="true"></i> Delete Log Database

As time goes by, the archive <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Log Databases get smaller and smaller as retention removes old data, until they are empty. The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> administrator can and should remove empty Log Databases. Deleting a non-empty Log Database results in **permanent, irreversible data loss**: the data is no longer accessible from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][] or the [Web API][].

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>If you manage multiple environments or delete databases on a recurring basis, use the <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/automating-removal-of-old-log-databases/">automated SQL Server Agent job</a> instead of deleting manually here. It is repeatable, respects your retention policy, and removes the risk of human error.</p></div>
</aside>

> Only an archive Log Database, one whose End date has passed, can be deleted. <sup><span class="nodinite-new-badge">New 7.12</span></sup> Every other Log Database has no **Delete** button on its edit page, and the [Web API][] (`DELETE api/LogDatabases/{id}`) refuses the delete with HTTP 400 and says why:
>
> | Log Database | The Web API's reason |
> | --- | --- |
> | The online one, without an End date | *… is the online Log Database and receives the new events.* |
> | The online one, with a planned End date | *… is the online Log Database until its End date 2026-12-18 00:00:00 UTC.* |
> | A planned one, whose Start date is still in the future | *… is planned to start (date) UTC and holds no archived events yet.* |
>
> Each reason ends with *Only an archive Log Database, one whose End date has passed, can be removed from the configuration.* Deleting removes the registration only: the physical database is not deleted in SQL Server; you must delete it manually from within [SSMS](https://learn.microsoft.com/en-us/ssms/sql-server-management-studio-ssms)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>.

To manually remove an empty archive Log Database, follow the steps below **in order**. Skipping steps or reversing the order can leave your system in an inconsistent state.

<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>Dropping a database is <strong>permanent and irreversible</strong>: there is no undo, no recycle bin, and no way to recover the data afterwards. Always verify the database is empty and that your retention policy permits removal before proceeding.</p></div>
</aside>

![Open an empty archive, check its Database Report, delete the registration, and confirm with Yes, animated walkthrough (7.12)][9]  
*Animated walkthrough: the registration goes, the database stays on the SQL Server.*  

1. Make sure the database is empty. Use SSMS, or open the Log Database and click **Show Database Report** (optional): it shows the size, the event counts, and the backups.  
    ![Show Database Report button on the Log Database edit page (7.12)][4]  
    *The database report shows how much data is left in the Log Database.*  
2. Click **Delete** in the footer of the edit page.  
    ![Footer of an archive Log Database's edit page with Delete, Save, Save and close (7.12)][5]  
    *An archive Log Database (here the first half of 2024) has **Delete** in its footer.*  
    ![Footer of the online Log Database's edit page with only Save and Save and close, no Delete (7.12)][11]  
    *The online Log Database has no **Delete** button, also while it has a planned End date.*  
    **Confirm intent to Delete** asks you to confirm, under a **WARNING - POSSIBLE DATA LOSS** banner. Click **Yes**. The page confirms the deletion and returns to the list.  
    ![Confirm intent to Delete dialog with the WARNING - POSSIBLE DATA LOSS banner and Yes and No (7.12)][6]  
    *The dialog states that the physical database in SQL Server is not deleted.*  
3. Remove the physical database from the SQL Server instance **using SSMS** (not from the file system directly). This frees disk space on SQL Server. Deleting the files directly bypasses SQL Server's shutdown procedures and can corrupt system metadata.  

## <i class="fal fa-circle-nodes" aria-hidden="true"></i> Always-On

If you use a SQL Server Always-On availability group to host the Log Database, provide the following details:

* Enter the name of the Always-On group (usually the listener name) as **Linked Server / Listener Name**.  
* Check **Remote server**.  

![Log Database form with the listener CONTOSO-AG-LISTENER as Linked Server / Listener Name and Remote server checked (7.12)][3]  
*Example settings for a SQL Server Always-On availability group.*  

> Make sure the [linked servers][Linked Servers] are set up using the listener name. Review the '[About Always-On][AlwaysOn]' user guide for details.

For new Log Databases in an availability group, set [LogDatabaseRecovery][] to `FULL` and [AvailabilityGroupBackupPath][] to the network share the Logging Service uses for the backup that the secondary replicas restore.

## <i class="fal fa-wrench" aria-hidden="true"></i> Troubleshooting

The following user guides are usually helpful:

* [About Always-On][AlwaysOn]  
* [Linked Servers][]  
* [About SQL Server][Microsoft SQL Server]  
* [Log Databases troubleshooting][Log Database Troubleshooting]  

### How do I move a Nodinite Log Database?

Moving a <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Log Database is detailed in the '[Moving Nodinite Databases][Moving Databases]' user guide. After the move, edit the registration here and change **Linked Server / Listener Name** (and **Remote server**) accordingly.

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

* <i class="fal fa-book" aria-hidden="true"></i> [Update Log Database][]  
* <i class="fal fa-recycle" aria-hidden="true"></i> [Automating removal of old Log Databases][AutomateRemoval]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters for Log Databases][]  

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

* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases Overview][]  
* <i class="fal fa-database" aria-hidden="true"></i> [What is a Log Database?][Log Databases]  
* <i class="fal fa-hammer" aria-hidden="true"></i> [Create new Log Databases Manually][]  
* <i class="fal fa-truck" aria-hidden="true"></i> [Moving Nodinite Databases][Moving Databases]  
* <i class="fal fa-circle-nodes" aria-hidden="true"></i> [About Always-On][AlwaysOn]  
* <i class="fal fa-link" aria-hidden="true"></i> [Linked Servers][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Configuration Database][ConfigDB]  
* <i class="fal fa-search" aria-hidden="true"></i> [Log Views][]  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][]  
* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][LogAPI]  
* <i class="fal fa-sliders-h" aria-hidden="true"></i> [System Parameters][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/AddLogDatabaseModal.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/StartDate.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/EnableAlwaysOn.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/ShowDatabaseReportButton.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/DeleteButton.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/ConfirmDeleteModal.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/LogDatabases_AddRegistration.gif
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/LogDatabases_Edit.gif
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/LogDatabases_DeleteRegistration.gif
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/DatabaseNameHint.png
[11]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/OnlineFooterNoDelete.png
[12]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/LogDatabase/OnlinePlannedEndDate.png

[Administration]:https://docs.nodinite.com/administration/overview/
[AlwaysOn]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/always-on-availability-groups/
[AutomateRemoval]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/automating-removal-of-old-log-databases/
[AvailabilityGroupBackupPath]:https://docs.nodinite.com/administration/settings/system-parameters/availabilitygroupbackuppath/
[CleanUpTimerInterval]:https://docs.nodinite.com/administration/settings/system-parameters/cleanuptimerinterval/
[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Create new Log Databases Manually]:https://docs.nodinite.com/core-services/log-databases/features/create-new-log-databases-manually/
[DatabaseMaintenance]:https://docs.nodinite.com/administration/settings/system-parameters/databasemaintenance/
[DaysToKeepMessageDataDefault]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeepmessagedatadefault/
[DaysToKeepMessageEventsDefault]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeepmessageeventsdefault/
[DaysToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/daystosplitdatabaseon/
[EnvironmentName]:https://docs.nodinite.com/administration/settings/system-parameters/environmentname/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Log Database Naming]:https://docs.nodinite.com/core-services/log-databases/overview/#fa-tag-log-database-naming
[Log Database Troubleshooting]:https://docs.nodinite.com/core-services/log-databases/troubleshooting/overview/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Databases Overview]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[LogAPI]:https://docs.nodinite.com/core-services/log-api/overview/
[LogDatabaseName]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabasename/
[LogDatabaseRecovery]:https://docs.nodinite.com/administration/settings/system-parameters/logdatabaserecovery/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Microsoft SQL Server]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-options/
[Monitor Events]:https://docs.nodinite.com/core-services/monitoring-service/features/what-is-a-monitoring-event/
[Moving Databases]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/database-migration/overview/
[SizeToSplitDatabaseOn]:https://docs.nodinite.com/administration/settings/system-parameters/sizetosplitdatabaseon/
[SQL Server Options]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-options/
[SqlServer]:https://docs.nodinite.com/administration/settings/system-parameters/sqlserver/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[System Parameters for Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/#system-parameters-for-log-databases
[Update Log Database]:https://docs.nodinite.com/administration/settings/log-databases/update-log-database/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/