---
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."
---

# :fa-database: Add or manage a Nodinite Log Database

Add, manage, move, and delete Log Database registrations in :Nodinite: 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 :Nodinite: 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 :Nodinite: [Web Client][]. The physical database is created by the :Nodinite: [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.  

>[!TIP]
>**Updating database schemas:** when :Nodinite: releases a new version with schema improvements, use the [Update Log Database][] wizard. It handles service pauses, recovery models, and DACPAC deployment. **Don't apply schema changes manually.**

## :fa-arrows-spin: 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 :Nodinite:.

<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][].

## :fa-pen-square: Instructions

A **name** for the [Log Database][Log Databases] is mandatory. To insert new [Log Events][Log Event], :Nodinite: 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.*  

### :fa-box-archive: 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.

### :fa-pen: 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][]. :new7.12: 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 :Nodinite: [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 :Nodinite: 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. :Nodinite: still searches the database from [Log Views][].

>[!NOTE]
>The Read-Only flag can only be checked for an archive Log Database: on Add, **Archive Database** must be ticked, and on edit, its End date must have passed. The online Log Database can never be read-only.

### Remote Server

In relation to the :Nodinite: [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 :Nodinite: 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. :Nodinite: 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.

## :fa-trash-can: Delete Log Database

As time goes by, the archive :Nodinite: Log Databases get smaller and smaller as retention removes old data, until they are empty. The :Nodinite: 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 :Nodinite: [Web Client][] or the [Web API][].

>[!TIP]
>If you manage multiple environments or delete databases on a recurring basis, use the [automated SQL Server Agent job][AutomateRemoval] instead of deleting manually here. It is repeatable, respects your retention policy, and removes the risk of human error.

> Only an archive Log Database, one whose End date has passed, can be deleted. :new7.12: 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>:fa-arrow-up-right-from-square:</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.

>[!IMPORTANT]
>Dropping a database is **permanent and irreversible**: 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.

![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.  

## :fa-circle-nodes: 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.

## :fa-wrench: 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 :Nodinite: 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.

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

* :fa-book: [Update Log Database][]  
* :fa-recycle: [Automating removal of old Log Databases][AutomateRemoval]  
* :fa-sliders: [System Parameters for Log Databases][]  

## :fa-link-horizontal: Related Topics

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

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

[Administration]:{ndr}/Administration/Overview.md
[AlwaysOn]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Always%20On%20Availability%20Groups.md
[AutomateRemoval]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Automating%20removal%20of%20old%20Log%20Databases.md
[AvailabilityGroupBackupPath]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AvailabilityGroupBackupPath.md
[CleanUpTimerInterval]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/CleanUpTimerInterval.md
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Create new Log Databases Manually]:{ndr}/Core%20Services/Log%20Databases/Features/Create%20new%20Log%20Databases%20Manually.md
[DatabaseMaintenance]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DatabaseMaintenance.md
[DaysToKeepMessageDataDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageDataDefault.md
[DaysToKeepMessageEventsDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageEventsDefault.md
[DaysToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToSplitDatabaseOn.md
[EnvironmentName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/EnvironmentName.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Log Database Naming]:{ndr}/Core%20Services/Log%20Databases/Overview.md#fa-tag-log-database-naming
[Log Database Troubleshooting]:{ndr}/Core%20Services/Log%20Databases/Troubleshooting/Overview.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Overview]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[LogAPI]:{ndr}/Core%20Services/Log%20API/Overview.md
[LogDatabaseName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseName.md
[LogDatabaseRecovery]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseRecovery.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Microsoft SQL Server]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[Monitor Events]:{ndr}/Core%20Services/Monitoring%20Service/Features/What%20is%20a%20Monitoring%20Event.md
[Moving Databases]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Database%20Migration/Overview.md
[SizeToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md
[SQL Server Options]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[SqlServer]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlServer.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[System Parameters for Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md#system-parameters-for-log-databases
[Update Log Database]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Update%20Log%20Database.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md