---
title: How to Resolve SQL Server Recovery Pending State for Nodinite Databases
description: Resolve SQL Server Recovery Pending state for Nodinite databases. Step-by-step guide for troubleshooting and restoring service continuity.
---

# :fa-bone-break: Recovery Pending

When a :Nodinite: database ([Configuration Database][ConfigDB] or [Log Database][Log Databases]) enters the **Recovery Pending** state, it signals a critical issue that can disrupt your business operations. This guide empowers you to quickly restore service continuity and minimize downtime.

>[!TIP]
> <a href="https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/restore-and-recovery-overview-sql-server?view=sql-server-ver15">Make sure to read about restore and recovery first</a><sup>:fa-arrow-up-right-from-square:</sup>

* ✅ Step-by-step instructions for safe database recovery  
* ✅ Minimize data loss and restore Nodinite services fast  
* ✅ Best practices for SQL Server troubleshooting  
* ✅ Direct links to support and further resources  

>[!IMPORTANT]
>
>* If you are reading this, something really bad has happened to one or more databases. Read more on the [Support page][SupportPage] to learn how to get further technical assistance.
>* Always ensure you have a recent SQL backup and sysadmin privileges before executing any recovery commands. Proceed with caution to avoid potential data loss.
>* For a complete explanation of when `sysadmin` is required and what to do when policy denies it, see [SQL Server Sysadmin Requirements][].

## Troubleshooting

### 1. Stop all Nodinite related services

First, stop all :Nodinite: related services to prevent further issues. On Windows Server, every :Nodinite: [Core Service][Core Services] is its own [IIS][IIS Authentication settings] web site with its own application pool, including the [Logging Service][] and the [Monitoring Service][], so you stop them in IIS Manager:

* The application pools of the [Logging Service][] and the [Monitoring Service][] first, then the rest of the [Core Services][] (the names depend on your installation). Review the [IIS Authentication settings][] user guide for additional information  
    ![IIS Manager listing the Nodinite application pools][1]  
    *App Pools for Nodinite services in IIS*  
* [Monitoring Agents][] (if any are installed)
* [Pickup Log Events Service Logging Agent][Pickup Service] (if installed)

### 2. Recover the database

To recover the affected database, run the following SQL script. Replace `[Nodinite_Test_Config]` with your actual database name:

```SQL
ALTER DATABASE [Nodinite_Test_Config] SET EMERGENCY;
GO
ALTER DATABASE [Nodinite_Test_Config] SET SINGLE_USER;
GO
DBCC CHECKDB ([Nodinite_Test_Config], REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS;
GO
ALTER DATABASE [Nodinite_Test_Config] SET MULTI_USER;
GO
```

>[!NOTE]
>The `REPAIR_ALLOW_DATA_LOSS` option may result in some data loss. Always restore from backup if possible.

### 3. Restart Nodinite services

Restart all :Nodinite: services in the following order:  

* The application pools of the [Web API][] and the other [Core Services][] (see [IIS Authentication settings][] for details)  
* The [Monitoring Service][] application pool  
* The [Logging Service][] application pool  
* [Monitoring Agents][] and any other services you stopped earlier

Then check **Administration > Settings > [Log Databases][Log Databases Admin]** in the [Web Client][] to confirm that every Log Database is operational again.

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

* :fa-map: [Planning Guide][Planning your Nodinite Installation]  
* :fa-database: [Monitoring SQL Server][Database Monitoring Agent]  
* :fa-floppy-disk: [Backups][SQL Server Backups]  

## :fa-link-horizontal: Related Topics

* :fa-database: [Microsoft SQL Server][]  
* :fa-database: [SQL Server Troubleshooting][SQL Server Overview]  
* :fa-database: [Configuration Database][ConfigDB]  
* :fa-database: [Log Databases][]  
* :fa-user-shield: [SQL Server Sysadmin Requirements][]  

[1]:{ndm}/Documentation%20Pictures/IM/IMUpdate/Settings/IISAppPools.png

[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Database Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Database/Overview.md
[IIS Authentication settings]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Admin]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Microsoft SQL Server]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md
[Monitoring Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Planning your Nodinite Installation]:{ndr}/Install%20and%20Update/Getting%20started/1.%20Planning%20your%20Nodinite%20Solution.md
[SQL Server Backups]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Options.md#backups
[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
[SupportPage]:{ndr}/Getting%20Started/Support.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md