---
title: "Automate Safe Removal of Old Nodinite Log Databases: SQL Server Agent Job Guide"
description: "Automate the safe removal of historical Nodinite Log Databases using SQL Server Agent jobs. Complete beginner-friendly step-by-step guide: create the job, name it, add scripts, set a schedule, and monitor results in SSMS."
---

# Remove historical Log Databases

>[!TIP]
>:Nodinite: can perform shrinking of [Log Databases][] to manage disk space, but this does not remove the database itself. See the [System Parameter][System Parameters] '[DatabaseMaintenance][]' for more information on this capability.

Easily automate the safe removal of historical :Nodinite: Log Databases that are no longer required by your business. This guide empowers you to:

* ✅ Maintain compliance and optimize storage with automated cleanup  
* ✅ Reduce manual DBA workload and risk of human error  
* ✅ Follow best practices for data retention and system stability  
* ✅ Use SQL Server Agent jobs for reliable, repeatable maintenance  

>[!INFO]
>On this page, you will learn how to **remove** historical :Nodinite: [Log Databases][] by creating an automated job inside SQL Server. You do not need to be a database expert to follow this guide.

:Nodinite: automatically creates new databases when the following [System Parameters][] are met:

* :fa-calendar-day: [DaysToSplitDatabaseOn][] — Create a new database after this many days.
* :fa-sort-size-up-alt: [SizeToSplitDatabaseOn][] — Create a new database when exceeding this size.

>[!IMPORTANT]
>:Nodinite: does **NOT** automatically remove Log Databases. You must establish a routine to remove these according to your policy. Dropping [Log Databases][] carries a high risk, including potential data loss and system instability. Always verify you are removing the correct set and use your own discretion.

---

## Understanding Data Retention

It is safe to remove empty old [Log Databases][]. However, even empty historical [Log Databases][] consume disk space and create overhead — CPU, disk I/O, and backup pressure. This process is designed to minimize risk and optimize performance.

Data retention in the [Log Databases][] is governed by [System Parameters][]. [Log Events][Log Event] are individually removed based on the [Message Type][Message Types]. The following [System Parameters][] specify how long to keep events and data by default:

* :fa-calendar-day: [DaysToKeepMessageEventsDefault][]
* :fa-calendar-day: [DaysToKeepMessageContextDefault][]
* :fa-calendar-day: [DaysToKeepMessageDataDefault][]
* :fa-calendar-day: [DaysToKeepMonitorEvents][]

A [Log Database][Log Databases] is safe to remove once all its data has been purged according to your retention policy **and** the `EndDate` for that database has passed. The scripts below automatically detect such databases — you only need to set the variables.

<div class="mermaid">
flowchart TB
    New["fa:fa-database Online Log Database<br/>created by the Logging Service"] -->|"Size or days reached"| Archive["fa:fa-box-archive Archive Log Database<br/>EndDate set"]
    Archive -->|"Retention purges Log Events"| Expired["fa:fa-hourglass-end Expired<br/>EndDate older than @days"]
    Expired -->|"Job step 1: Script A"| Dropped["fa:fa-trash Database dropped<br/>on SQL Server"]
    Dropped -->|"Job step 2: Script B"| Clean["fa:fa-broom Row removed<br/>from LogTables"]
    Dropped -.->|"Step 1 fails: job quits"| Stop["fa:fa-ban Step 2 never runs"]
    style New fill:#2678BD
    style Archive fill:#3F827B
    style Expired fill:#FFD525
    style Dropped fill:#E47528
    style Clean fill:#93d16d
    style Stop fill:#c33d34
</div>

*Diagram: the life of a [Log Database][Log Databases]. The [Logging Service][] creates a new online Log Database when [SizeToSplitDatabaseOn][] or [DaysToSplitDatabaseOn][] is reached; the previous one becomes an archive. Retention [System Parameters][] purge its [Log Events][Log Event], and once its `EndDate` is older than `@days`, the SQL Server Agent job on this page drops it (Script A) and then removes its row from the [Configuration Database][ConfigDB] (Script B). Red marks the safety stop when Script A fails.*

---

## What You Need Before Starting

Make sure you have the following before continuing:

* ✅ **SQL Server Management Studio (SSMS)** installed on your computer — [Download SSMS free from Microsoft][SSMS Download]<sup>:fa-arrow-up-right-from-square:</sup>
* ✅ A SQL Server login with **sysadmin** privileges on the server that hosts the :Nodinite: [Configuration Database][ConfigDB]
* ✅ The **SQL Server Agent** service is **running** on that SQL Server instance (check with your DBA if unsure)
* ✅ The name of your :Nodinite: [Configuration Database][ConfigDB] — for example, `Nodinite_Prod_Config`
* ✅ The prefix of your :Nodinite: Log Databases — for example, `Nodinite_Prod_Log_`

Use [SQL Server Sysadmin Requirements][] to align DBA policy decisions with installation, first database creation, and optional maintenance behavior.

>[!WARNING]
>**[SQL Server Express][] does not include SQL Server Agent.** If you are running SQL Server Express (including SQL Server 2025 Express), use a Windows [Scheduled Task][Scheduled Tasks] with `sqlcmd` as an alternative. Move to Standard/Enterprise only if your operations policy requires SQL Server Agent.

---

## The Scripts

The job uses two T-SQL scripts that must run **in sequence**. Never swap the order — Step 1 removes the physical databases, Step 2 removes the records from :Nodinite:. If Step 1 fails, Step 2 must never run.

### Script variables

Update the following four variables at the top of **both** scripts to match your environment before using them in the job:

|Variable|Description|Example|
|---|---|---|
|`@prefix`|The prefix portion of your :Nodinite: Log Database names|v7: `Nodinite_Prod_Log_`<br/>Created by v6: `NodiniteLog_Prod_`|
|`@configDB`|The name of the :Nodinite: [Configuration Database][ConfigDB]|v7: `Nodinite_Prod_Config`<br/>Created by v6: `NodiniteConfig_Prod`|
|`@days`|How old (in days) a database must be before it is eligible for removal — must be a positive integer|`180`|
|`@managedInstance`|`1` if the Log Databases are hosted on **Azure SQL Managed Instance**, otherwise `0` — see [Azure SQL Managed Instance](#azure-sql-managed-instance)|`0`|

>[!TIP]
>Not sure what your prefix and config database are called? Open SSMS, connect, and expand **Databases** in Object Explorer. The names depend on the :Nodinite: version the databases were **created** with, not the version you run today, because upgrading to v7 does not rename existing databases:
>
> * v7 and later: `Nodinite_<Environment>_Log_…` and `Nodinite_<Environment>_Config`
> * v6 and earlier: `NodiniteLog_<Environment>_…` and `NodiniteConfig_<Environment>`
>
>If you have Log Databases with **both** naming patterns, the scripts only match one prefix per run. Create one job per prefix, or keep the old prefix until those databases are gone. See [Log Databases][] for the naming convention.

### Local vs Remote Log Databases

Before using the scripts, check where your Log Databases physically reside. Run the following query on your Config DB:

``` sql
SELECT [Database], [Server], [IsRemoteServer] FROM [dbo].[LogTables] ORDER BY [StartDate]
```

|**IsRemoteServer**|Meaning|Which script to use|
|---|---|---|
|`0`|The Log Database is on the **same SQL Server instance** as the Config DB|Run the job on the **Config DB server** — this is the standard case|
|`1`|The Log Database is on a **different SQL Server instance** (connected via a [linked server][Linked Servers])|Run the job **on the remote SQL Server** that hosts the Log Databases|
|`1`|The Log Databases are on **Azure SQL Managed Instance**|Set `@managedInstance = 1` and run the job on the Managed Instance — see [Azure SQL Managed Instance](#azure-sql-managed-instance)|

#### Azure SQL Managed Instance {#azure-sql-managed-instance}

On Azure SQL Managed Instance, Log Databases are registered in :Nodinite: with `IsRemoteServer = 1`, and Managed Instance does not allow `ALTER DATABASE … SET SINGLE_USER`. Set `@managedInstance = 1` in **both** scripts to handle this:

|Script behavior|`@managedInstance = 0` (SQL Server)|`@managedInstance = 1` (Managed Instance)|
|---|---|---|
|Selects Log Databases with|`IsRemoteServer = 0`|`IsRemoteServer = 1`|
|Disconnects open sessions before the drop|Yes — `SET SINGLE_USER WITH ROLLBACK IMMEDIATE`|No — not supported on Managed Instance|

>[!NOTE]
>Without `SINGLE_USER`, `DROP DATABASE` fails if a session still uses the Log Database. The job then stops at Script A with a failure and Script B does not run, so :Nodinite: and SQL Server stay in sync. Check the job history and run the job again when the database is no longer in use.

>[!WARNING]
>On SQL Server (`@managedInstance = 0`), Script A filters `AND [IsRemoteServer] = 0` as a safety guard. If all your rows show `IsRemoteServer = 1`, the script will produce **no DROP statements** — only `USE [master]`. Before assuming your databases are truly remote, **verify in SSMS** whether the Log Databases actually appear on the same server as the Config DB. If they do, the flag is incorrect in :Nodinite: and must be fixed — see [Fix incorrect IsRemoteServer flag](#fix-incorrect-isremoteserver-flag) below.

#### Fix Incorrect IsRemoteServer Flag {#fix-incorrect-isremoteserver-flag}

This section does not apply to Azure SQL Managed Instance, where `IsRemoteServer = 1` is expected. If your Log Databases are visible on the same SQL Server instance as your Config DB in SSMS, but `LogTables` shows `IsRemoteServer = 1`, the **Remote Server** checkbox was incorrectly ticked when those databases were registered in :Nodinite:.

Fix this in the :Nodinite: [Web Client][]:

1. Navigate to **Administration > Settings > [Log Databases][Log Databases Admin]**
2. Click **Edit** on each affected Log Database entry
3. Uncheck the **Remote Server** checkbox
4. Click **Save**
5. Repeat for all affected entries

Once all entries show `IsRemoteServer = 0`, re-run the diagnostic query above to confirm, then proceed with the scripts.

>[!TIP]
>See [Add or Manage a Log Database][AddOrManageLogDB] for full details on each field, including the **Remote Server** checkbox.

### Job step execution plan

|Job Step|On success|On failure|What it does|
|---|---|---|---|
|:fa-forward-step: [Script A](#script-a-remove-databases-from-sql-server)|Go to next step|Quit — report failure|Removes the physical Log Databases from SQL Server|
|:fa-forward-step: [Script B](#script-b-remove-entries-from-logtables)|Quit — report success|Quit — report failure|Removes the database records from the :Nodinite: [Configuration Database][ConfigDB]|

### Script A: Remove Databases from SQL Server {#script-a-remove-databases-from-sql-server}

``` sql
-- NOTE: @prefix, @configDB, @days, and @managedInstance MUST be identical in Script A and Script B
DECLARE @prefix          NVARCHAR(255) = 'Nodinite_Prod_Log_',  -- created by v6: 'NodiniteLog_Prod_'
        @configDB        NVARCHAR(255) = 'Nodinite_Prod_Config', -- created by v6: 'NodiniteConfig_Prod'
        @days            INT           = 180, -- Must be a positive integer
        @managedInstance BIT           = 0    -- 1 = Azure SQL Managed Instance, 0 = SQL Server

-- @dropSql contains the DROP statements that run in master context
DECLARE @dropSql  NVARCHAR(MAX) = 'USE [master]' + CHAR(13) + CHAR(10)

-- @buildSql queries LogTables in the Config DB using a 3-part name so
-- this script can safely run from any database context (e.g. master)
DECLARE @buildSql NVARCHAR(MAX) = N'
SELECT @dropSql +=
    ''EXEC msdb.dbo.sp_delete_database_backuphistory @database_name = ['' + [Database] + '']'' + CHAR(13) + CHAR(10) +
    -- SET SINGLE_USER is not supported on Azure SQL Managed Instance
    CASE WHEN @managedInstance = 0
         THEN ''ALTER DATABASE ['' + [Database] + ''] SET SINGLE_USER WITH ROLLBACK IMMEDIATE'' + CHAR(13) + CHAR(10)
         ELSE '''' END +
    ''DROP DATABASE [''  + [Database] + '']''                                                   + CHAR(13) + CHAR(10)
FROM [' + @configDB + '].[dbo].[LogTables]
WHERE  [Database]       LIKE N''' + @prefix + '%''
  AND  [EndDate]        IS NOT NULL
  AND  [EndDate]        < DATEADD(DD, ' + CAST(@days AS VARCHAR(18)) + ' * -1, GetDate())
  AND  [IsRemoteServer] = @managedInstance -- Managed Instance registers Log Databases with IsRemoteServer = 1
ORDER BY [Database]'

EXEC sp_executesql @buildSql,
     N'@dropSql NVARCHAR(MAX) OUTPUT, @managedInstance BIT',
     @dropSql OUTPUT, @managedInstance

PRINT @dropSql
-- TODO: Remove the two dashes at the start of the next line when adding to the SQL Agent job
-- EXEC sp_executesql @dropSql
```

>[!IMPORTANT]
>The last `EXEC` line is commented out. **When testing manually**, leave it commented so the script only prints what it would do. **When adding this script to the SQL Agent job**, remove the `--` comment prefix so the job actually performs the removal. See [Step 5](#step-5) below.

### Script B: Remove Entries from LogTables {#script-b-remove-entries-from-logtables}

``` sql
-- NOTE: @prefix, @configDB, @days, and @managedInstance MUST be identical in Script A and Script B
DECLARE @prefix          NVARCHAR(255) = 'Nodinite_Prod_Log_',  -- created by v6: 'NodiniteLog_Prod_'
        @configDB        NVARCHAR(255) = 'Nodinite_Prod_Config', -- created by v6: 'NodiniteConfig_Prod'
        @days            INT           = 180, -- Must be a positive integer
        @managedInstance BIT           = 0    -- 1 = Azure SQL Managed Instance, 0 = SQL Server

DECLARE @sql NVARCHAR(MAX)

SELECT @sql =
    'USE [' + @configDB + ']'                    + CHAR(13)+CHAR(10) +
    'DELETE FROM LogTables'
    + ' Where [Database] LIKE (''' + @prefix + '%'')'
    + ' AND [EndDate] IS NOT NULL'
    + ' AND [EndDate] < DATEADD(DD, ' + CAST(@days AS VARCHAR(18)) + ' * -1, GetDate())'
    + ' AND [IsRemoteServer] = ' + CAST(@managedInstance AS CHAR(1)) + CHAR(13)+CHAR(10)

PRINT @sql
-- TODO: Remove the two dashes at the start of the next line when adding to the SQL Agent job
-- EXEC sp_executesql @sql
```

>[!IMPORTANT]
>Same rule applies: leave the `EXEC` line commented for manual testing. Uncomment it only when adding this script to the SQL Agent job in [Step 6](#step-6).

---

## :fa-forward-step: Step 1: Test the Scripts Manually First

Before you build the job, verify the scripts return the correct list of databases. **Skipping this step risks deleting the wrong databases.**

>[!WARNING]
>If the Messages tab only shows `USE [master]` with no `DROP DATABASE` lines, the most likely causes are:
>
> * The `IsRemoteServer` flag is incorrectly set to `1` in :Nodinite: — even though the databases are on the same server. Fix this in the Web Client first. See [Fix incorrect IsRemoteServer flag](#fix-incorrect-isremoteserver-flag).
> * You run Azure SQL Managed Instance but left `@managedInstance = 0` — set it to `1` in both scripts. See [Azure SQL Managed Instance](#azure-sql-managed-instance).
> * Your Log Databases are genuinely on a different server — connect SSMS to that server and run the job there instead.

1. Open **SQL Server Management Studio (SSMS)**
2. Connect to the SQL Server **where the job will run**:
   * If your Log Databases have `IsRemoteServer = 0`: connect to the **Config DB server**
   * If your Log Databases have `IsRemoteServer = 1`: connect to the **remote SQL Server** that hosts the Log Databases
   * If you run Azure SQL Managed Instance: connect to the **Managed Instance** and set `@managedInstance = 1`
3. Click **New Query** in the toolbar
4. Paste in **Script A** exactly as shown above (with the `EXEC` line commented out)
5. Update the four variables at the top (`@prefix`, `@configDB`, `@days`, `@managedInstance`) to match your environment
6. Press `F5` to run the query
7. Click the **Messages** tab at the bottom — you will see a list of database names that **would** be deleted and the generated `DROP DATABASE` statements

>[!IMPORTANT]
>Review this list carefully. Dropping a database is **permanent and irreversible** — there is no undo. If a database appears in the list that you want to keep, increase the `@days` value. Confirm with your team that the listed databases truly contain expired data before continuing.

Once you are satisfied the list is correct, repeat the test for **Script B** the same way.

---

## :fa-forward-step: Step 2: Open SQL Server Management Studio

1. Open **SQL Server Management Studio (SSMS)**. If you do not have it, [download it here for free][SSMS Download]<sup>:fa-arrow-up-right-from-square:</sup>
2. In the **Connect to Server** dialog:
   * **Server name**: the hostname or IP of the SQL Server that hosts your :Nodinite: [Configuration Database][ConfigDB]
   * **Authentication**: use [Windows Authentication][Windows Authentication] when the server is domain-joined. Use **SQL Server Authentication** if your DBA gave you a SQL login and password
3. Click **Connect**

>[!TIP]
>If you are unsure of the server name, look at the SQL Server connection string of the environment in the Portal, [Step 3: Infrastructure][Portal SQL Server], or contact your DBA.

---

## :fa-forward-step: Step 3: Navigate to SQL Server Agent

SQL Server Agent is the built-in job scheduler in SQL Server. Think of it as Windows Task Scheduler, but built directly into SQL Server and far more reliable for database operations. [Learn more about SQL Server Agent][SQL Server Agent Docs]<sup>:fa-arrow-up-right-from-square:</sup>

In the **Object Explorer** panel on the left side of SSMS:

1. Expand the tree node for your SQL Server instance
2. Scroll down until you see **SQL Server Agent**
3. Expand **SQL Server Agent**
4. Right-click **Jobs**
5. Click **New Job...**

>[!WARNING]
>If **SQL Server Agent** is missing from the tree, either the Agent service is not running or you are connected to a SQL Server Express instance (which does not include Agent). For non-Express editions, ask your DBA to start the SQL Server Agent Windows Service. Open **Services** (`services.msc`), find **SQL Server Agent (MSSQLSERVER)** and set it to **Automatic** startup.

---

## :fa-forward-step: Step 4: Name the Job

The **New Job** dialog opens. On the **General** tab:

1. **Name**: Enter a clear and descriptive name. Good examples:
   * `Nodinite - Remove Old Log Databases - Prod`
   * `Nodinite Log DB Cleanup (Production)`

2. **Owner**: Set this to a SQL login with **sysadmin** rights — typically `sa` or a dedicated DBA service account. **Do not use a personal login.** If your personal account is ever removed or disabled, the job will stop running silently.

   If your service account is not `sysadmin`, review [SQL Server Sysadmin Requirements][] and disable [DatabaseMaintenance][] where required.

3. **Category**: Click the `...` button and select **Database Maintenance**. This is cosmetic but makes it easy to find the job among dozens of others.

4. **Description**: Write a short note about what the job does and why. For example:
   > Removes Nodinite Log Databases older than 180 days. Configured per retention policy. Runs every Sunday at 02:00. Created by [your name] on [date].

5. Make sure the **Enabled** checkbox is ticked.

>[!TIP]
>A good naming convention for jobs is: `Product - Action - Environment`. For example: `Nodinite - Remove Old Log Databases - Prod`. When you have many jobs, a consistent naming convention makes maintenance much easier.

---

## :fa-forward-step: Step 5: Add Job Step A — Remove Databases {#step-5}

Click the **Steps** page on the left side of the New Job dialog, then click **New...**:

1. **Step name**: `Step 1 - Remove Old Log Databases from SQL Server`
2. **Type**: `Transact-SQL script (T-SQL)`
3. **Run as**: Leave as default (`SQL Server Agent Service Account`)
4. **Database**: Select `master` from the dropdown — the script uses a 3-part database name internally to read from your Config DB, so it can safely run from `master` context

5. **Command**: Paste **Script A** from [above](#script-a-remove-databases-from-sql-server). **Before clicking OK, remove the `--` comment prefix from the last `EXEC` line** so the script reads:

   ```sql
   EXEC sp_executesql @dropSql
   ```

   Also update the four variables at the top to match your environment.

6. Click the **Advanced** tab within the step dialog and set:
   * **On success action**: `Go to the next step`
   * **On failure action**: `Quit the job reporting failure`

7. Click **OK** to save the step.

>[!IMPORTANT]
>The **On failure action** setting is critical. Setting it to *Quit the job reporting failure* ensures that if the physical database removal in Step 1 fails, Step 2 will never run — preventing the situation where :Nodinite: loses track of databases that still exist on SQL Server.

---

## :fa-forward-step: Step 6: Add Job Step B — Clean Up LogTables {#step-6}

Click **New...** again to add the second step:

1. **Step name**: `Step 2 - Remove Log Database entries from LogTables`
2. **Type**: `Transact-SQL script (T-SQL)`
3. **Run as**: Leave as default
4. **Database**: Select your :Nodinite: [Configuration Database][ConfigDB] from the dropdown (e.g., `Nodinite_Prod_Config`)

5. **Command**: Paste **Script B** from [above](#script-b-remove-entries-from-logtables). **Remove the `--` comment prefix from the last `EXEC` line** so the script reads:

   ```sql
   EXEC sp_executesql @sql
   ```

   Update the four variables to match your environment — they **must be identical** to the values used in Step 1.

6. Click the **Advanced** tab and set:
   * **On success action**: `Quit the job reporting success`
   * **On failure action**: `Quit the job reporting failure`

7. Click **OK** to save the step.

>[!TIP]
>You can reorder job steps using the **Move step up / Move step down** arrows on the Steps page. **Step 1 must always come before Step 2.**

---

## :fa-forward-step: Step 7: Set Up a Schedule

Without a schedule, the job must be started manually every time. A recurring schedule automates the cleanup.

>[!TIP]
>Always pick a time when the SQL Server is under low load. Early Sunday morning (01:00–04:00) is the most common choice. Avoid business hours and integration-heavy periods. Ask your team if there is a defined maintenance window.

Click the **Schedules** page, then click **New...**:

1. **Name**: Give the schedule a descriptive name, for example: `Weekly Sunday 02:00`
2. **Schedule type**: `Recurring`
3. **Frequency** section:
   * **Occurs**: `Weekly`
   * **Recurs every**: `1` week(s)
   * Tick the **Sunday** checkbox (or whichever day your organization uses as a maintenance window)
4. **Daily frequency** section:
   * **Occurs once at**: `02:00:00`
5. **Duration** section:
   * **Start date**: today's date
   * **End date**: `No end date`
6. Click **OK** to save the schedule.

>[!NOTE]
>For more scheduling options — such as running on multiple days or on the last day of the month — see [Create a Schedule in SQL Server Agent][SQL Agent Schedule Docs]<sup>:fa-arrow-up-right-from-square:</sup>.

---

## :fa-forward-step: Step 8: Configure Failure Notifications (Recommended)

Getting an alert when the job **fails** lets you act before a retention problem grows.

Click the **Notifications** page:

1. Tick **E-mail**
2. Select an **operator** (an operator is a named email recipient configured in SQL Server Agent)
3. Set the condition to **When the job fails**
4. Click **OK**

>[!INFO]
>If you do not see any operators in the dropdown, or if email notifications are not yet configured, ask your DBA to set up **Database Mail** and create an **Operator**. See [Configure Database Mail][Database Mail Docs]<sup>:fa-arrow-up-right-from-square:</sup> on Microsoft Learn. You can skip this step for now and check job history manually instead.

---

## :fa-forward-step: Step 9: Save the Job

Click **OK** at the bottom of the New Job dialog to save.

The job now appears under **SQL Server Agent > Jobs** in the Object Explorer. Right-click it and select **Properties** at any time to review or change its configuration.

---

## :fa-forward-step: Step 10: Run the Job Manually to Verify

Before relying on the scheduled run, trigger the job manually once to confirm everything works end-to-end:

1. In the **Object Explorer**, expand **SQL Server Agent > Jobs**
2. Right-click your job (e.g., `Nodinite - Remove Old Log Databases - Prod`)
3. Select **Start Job at Step...** and choose **Step 1 - Remove Old Log Databases from SQL Server**
4. Click **Start** in the dialog that appears
5. Wait for the progress indicator to complete — this is usually fast (a few seconds to a minute depending on how many databases are removed)
6. Click **Close**

---

## :fa-forward-step: Step 11: Verify the Results

Check that the job completed successfully and that the correct databases were removed:

1. In the **Object Explorer**, right-click your job
2. Select [View History][]
3. The **Job Activity Monitor** opens — find your job in the list:
   * ✅ A green checkmark means the job succeeded
   * ❌ A red X means the job failed
4. Click on any run row to expand it and read the output messages from each step
5. Refresh the **Databases** node in the Object Explorer — the removed Log Databases should no longer appear
6. Open the :Nodinite: [Web Client][] and navigate to **Administration > Settings > Log Databases** — deleted entries should be gone from the list

>[!TIP]
>Bookmark the **Job Activity Monitor** (right-click **SQL Server Agent** > **Monitor Job Activity**). It gives you a real-time overview of all job statuses and is the fastest way to spot problems after a maintenance window.

---

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

* :fa-list-check: [Microsoft SQL Server Options][Microsoft SQL Server]  
* :fa-database: [Add or Manage a Log Database][AddOrManageLogDB]  
* :fa-user-shield: [SQL Server Sysadmin Requirements][]  

## :fa-link-horizontal: Related Topics

* :fa-database: [Log Databases][]  
* :fa-key: [System Parameters][]  
* :fa-table: [DatabaseMaintenance][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-database: [SQL Server Troubleshooting][SQL Server Overview]  
* :fa-link: [Linked Servers][]  

[AddOrManageLogDB]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Add%20or%20manage%20Log%20Database.md
[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Database Mail Docs]:https://learn.microsoft.com/en-us/sql/relational-databases/database-mail/database-mail
[DatabaseMaintenance]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DatabaseMaintenance.md
[DaysToKeepMessageContextDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageContextDefault.md
[DaysToKeepMessageDataDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageDataDefault.md
[DaysToKeepMessageEventsDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageEventsDefault.md
[DaysToKeepMonitorEvents]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMonitorEvents.md
[DaysToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToSplitDatabaseOn.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Admin]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Microsoft SQL Server]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[Portal SQL Server]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/03%20-%20Infrastructure.md#configure-sql-server-connectivity
[Scheduled Tasks]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Scheduled%20Tasks.md
[SizeToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md
[SQL Agent Schedule Docs]:https://learn.microsoft.com/en-us/ssms/agent/create-a-schedule
[SQL Server Agent Docs]:https://learn.microsoft.com/en-us/ssms/agent/sql-server-agent
[SQL Server Express]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md#sql-server-express
[SQL Server Overview]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Overview.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[SSMS Download]:https://learn.microsoft.com/en-us/ssms/install/install
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[View History]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Monitor%20Views.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[Windows Authentication]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Connection%20Strings.md