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

# <i class="fal fa-bone-break" aria-hidden="true"></i> Recovery Pending

When a <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

<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><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><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup></p></div>
</aside>

* ✅ 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  

<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"><ul>
<li>If you are reading this, something really bad has happened to one or more databases. Read more on the <a href="https://docs.nodinite.com/getting-started/support/">Support page</a> to learn how to get further technical assistance.</li>
<li>Always ensure you have a recent SQL backup and sysadmin privileges before executing any recovery commands. Proceed with caution to avoid potential data loss.</li>
<li>For a complete explanation of when <code>sysadmin</code> is required and what to do when policy denies it, see <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/">SQL Server Sysadmin Requirements</a>.</li>
</ul></div>
</aside>

## Troubleshooting

### 1. Stop all Nodinite related services

First, stop all <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> related services to prevent further issues. On Windows Server, every <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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
```

<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 <code>REPAIR_ALLOW_DATA_LOSS</code> option may result in some data loss. Always restore from backup if possible.</p></div>
</aside>

### 3. Restart Nodinite services

Restart all <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

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

* <i class="fal fa-map" aria-hidden="true"></i> [Planning Guide][Planning your Nodinite Installation]  
* <i class="fal fa-database" aria-hidden="true"></i> [Monitoring SQL Server][Database Monitoring Agent]  
* <i class="fal fa-floppy-disk" aria-hidden="true"></i> [Backups][SQL Server Backups]  

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

* <i class="fal fa-database" aria-hidden="true"></i> [Microsoft SQL Server][]  
* <i class="fal fa-database" aria-hidden="true"></i> [SQL Server Troubleshooting][SQL Server Overview]  
* <i class="fal fa-database" aria-hidden="true"></i> [Configuration Database][ConfigDB]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-user-shield" aria-hidden="true"></i> [SQL Server Sysadmin Requirements][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Settings/IISAppPools.png

[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Database Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/database/overview/
[IIS Authentication settings]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Databases Admin]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[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/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[Planning your Nodinite Installation]:https://docs.nodinite.com/install-and-update/getting-started/planning-your-nodinite-solution/
[SQL Server Backups]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-options/#backups
[SQL Server Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/overview/
[SQL Server Sysadmin Requirements]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-sysadmin-requirements/
[SupportPage]:https://docs.nodinite.com/getting-started/support/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/