---
title: Monitor and Manage SQL Server Blocking Processes with Nodinite
description: Proactively monitor and manage SQL Server blocking processes with Nodinite. Get instant alerts, automate actions, and resolve issues quickly using remote actions and category-based monitoring.
---

# <i class="fal fa-database" aria-hidden="true"></i> SQL Server Blocking Processes

Proactively monitor and resolve SQL Server **blocking issues** with the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Database Monitoring Agent][]. Eliminate costly downtime, improve database performance, and resolve blocking incidents before they impact your business operations.

![SQL Server blocked processes turns Warning, List blocked processes shows the blocked session, and Terminate the blocked by process ends the block, animated walkthrough (7.12)][15]  
*Animated walkthrough: two sessions take the same application lock (the recipe under [Troubleshooting](#troubleshooting)). After 90 seconds 'SQL Server blocked processes' is **Warning**. **List blocked processes** shows the blocked SPID, its blocker, the wait type, and the wait time; **Terminate the blocked by process** (confirm) ends the block.*

## Why Monitor SQL Server Blocking Processes?

SQL Server blocking occurs when one process holds a lock on a resource that another process needs. Left undetected, blocking can:

* **<i class="fal fa-clock" aria-hidden="true"></i> Cause application timeouts** – Users experience slow response times or complete application failures
* **<i class="fal fa-money-bill-wave" aria-hidden="true"></i> Impact revenue** – E-commerce transactions, order processing, and critical business operations grind to a halt
* **<i class="fal fa-database" aria-hidden="true"></i> Cascade into deadlocks** – Multiple blocked processes can escalate into deadlock situations requiring intervention
* **<i class="fal fa-users" aria-hidden="true"></i> Frustrate end users** – Poor performance damages user experience and productivity
* **<i class="fal fa-chart-line" aria-hidden="true"></i> Degrade system performance** – Resource contention spreads across the entire database instance

**Without proactive monitoring**, teams discover blocking issues only after users complain—when it's already too late.

## What Does <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Monitor?

The [Database Monitoring Agent][] continuously monitors your **[SQL Instance][](s)** for blocking processes and provides:

✅ **Real-time blocking detection** – Identify blocking chains the moment they occur  
✅ **Customizable thresholds** – Set Warning and Error alerts based on blocking duration (seconds)  
✅ **Instant notifications** – Get alerts via email, SMS, Teams, or any [Alarm Plugin][Alarm Plugins] before users notice  
✅ **Remote remediation** – Terminate blocking processes directly from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][]  
✅ **Historical tracking** – Audit blocking incidents to identify patterns and root causes  
✅ **Centralized dashboard** – Monitor multiple SQL instances from one unified interface  

## When to Use SQL Blocking Monitoring?

Use this feature when you need to:

* <i class="fal fa-shield-halved" aria-hidden="true"></i> **Protect production databases** – Ensure mission-critical SQL instances remain responsive
* <i class="fal fa-business-time" aria-hidden="true"></i> **Support high-transaction environments** – Monitor OLTP systems where blocking frequently occurs
* <i class="fal fa-clock" aria-hidden="true"></i> **Meet SLA commitments** – Detect and resolve issues before breaching performance agreements
* <i class="fal fa-wrench" aria-hidden="true"></i> **Enable NOC/support teams** – Provide non-DBAs with safe, controlled remediation actions
* <i class="fal fa-chart-mixed" aria-hidden="true"></i> **Identify performance bottlenecks** – Track blocking patterns to optimize queries and indexes
* <i class="fal fa-calendar-days" aria-hidden="true"></i> **Ensure 24/7 operations** – Automate alerts for after-hours and weekend monitoring

## How It Works

When enabled, each monitored SQL Instance yields one [Resource][Resources] that the System Administrator can include in one or more [Monitor Views][]. Users receive alerts using at least one of the built-in [Alarm Plugins][].  

The **Display name** of the [Resource][Resources] is `SQL Server blocked processes`, one per instance, with the instance name as its **Application**. The **SQL Blocking** [Resource][Resources] is grouped by the [Category][Categories] name '**SQL Blocking**'.

![A Monitor View filtered on the SQL Blocking Category with SQL Server blocked processes OK (7.12)][1]  
*Example of a Monitor View filtered by the 'SQL Blocking' category.*  

<div class="mermaid">
graph LR
   subgraph "Configuration"
      c["fal:fa-code SQL Blocking / Instance"] --> r[fal:fa-lightbulb 1 Resource]
   end
</div>

*Each configuration is manifested as a [Resource][Resources].*  

## <i class="fal fa-key" aria-hidden="true"></i> What are the key features of Monitoring Blocking processes?

* <i class="fal fa-traffic-light-stop" aria-hidden="true"></i> **State Evaluation** – Monitors and evaluates the current state to ensure no process blocks another longer than the allowed duration.  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Actions](#fa-bolt-actions) – Support for the execution of [Remote Actions][]
  * <i class="fal fa-list" aria-hidden="true"></i> [List blocked processes](#fa-list-list-blocked-processes)  
    * <i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate the blocked by process](#terminate-the-blocked-by-process)  
    * <i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate the running process](#terminate-the-running-process)  
  * <i class="fal fa-edit" aria-hidden="true"></i> [Edit thresholds](#fa-edit-edit-thresholds)  

## What is evaluated for SQL Server Blocking?

The different possible evaluated states for your **SQL Blocking** are provided in the table below:

|State|Status|Description|<i class="fal fa-bolt" aria-hidden="true"></i> Actions|  
|---|---|---|---|  
|🚫 <span title="Used to indicate an error/fatal condition">Unavailable</span>|**Resource not available**|Evaluation of the 'SQL Instance' is not possible either due to network or security-related problems|Review [prerequisites][Prerequisites for Database Monitoring Agent]</br><i class="fal fa-edit" aria-hidden="true"></i> [Global Configuration][Configuration]|  
|❌ <span title="Used to indicate that an error or abnormal condition has been detected">Error</span>|**Error state raised**|At least one process has been blocked longer than the allowed **Error** duration|<i class="fal fa-edit" aria-hidden="true"></i> [Edit configuration](#fa-edit-edit-thresholds)</br><i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate running process](#terminate-the-running-process)</br><i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate blocked by](#terminate-the-blocked-by-process)|  
|⚠️ <span title="Used to indicate an unexpected but not invalid state"> Warning</span>|**Warning threshold is breached**|At least one process has been blocked longer than the allowed **Warning** duration</br>Log Text: *A block was detected and it has exceeded the allowed Warning threshold duration of 90 seconds*|<i class="fal fa-edit" aria-hidden="true"></i> [Edit configuration](#fa-edit-edit-thresholds)</br><i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate running process](#terminate-the-running-process)</br><i class="fal fa-tombstone" aria-hidden="true"></i> [Terminate blocked by](#terminate-the-blocked-by-process)|  
|✅ <span title="Used to indicate normal operation">OK</span>|**Online**|The SQL Server instance is online, operational and accessible. No blocking processes according to the Monitoring thresholds|<i class="fal fa-edit" aria-hidden="true"></i> [Edit configuration](#fa-edit-edit-thresholds)|  

<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>The System Administrator can override the Monitoring state using the <a href="https://docs.nodinite.com/administration/monitor-management/resources/features/expected-state/">Expected State</a> feature on the <a href="https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/">Resource</a> within <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.</p></div>
</aside>

____________________

## <i class="fal fa-globe" aria-hidden="true"></i> Global Configuration

To manage the blocking process feature, navigate to the [SQL Server Advanced tab][Configuration Advanced Tab] in the [Remote Configuration][Configuration].

![The Advanced tab of SQL Server Instance localhost in the Remote Configuration with SQL Blocking enabled and the Duration Warning 90 and Error 300 seconds (7.12)][13]  
*Example of the Advanced tab for blocking process configuration.*  

* <i class="fal fa-square-check" aria-hidden="true"></i> **SQL Blocking - Enabled** – When checked, monitoring for Blocking is enabled
* ⚠️ **SQL Blocking - Duration Warning** – The longest allowed duration for SQL Blocking in seconds before a Warning is raised (default 90)
* ❌ **SQL Blocking - Duration Error** – The longest allowed duration for SQL Blocking in seconds before an Error is raised (default 300)

## <i class="fal fa-bolt" aria-hidden="true"></i> Actions

The [Database Monitoring Agent][] supports remote actions. The following Actions are available in the **Control Center** part of the **Action** menu:  

* <i class="fal fa-edit" aria-hidden="true"></i> [Edit thresholds](#fa-edit-edit-thresholds)
* <i class="fal fa-list" aria-hidden="true"></i> [List blocked processes](#fa-list-list-blocked-processes)

![Action menu of SQL Server blocked processes with Edit thresholds and List blocked processes under Control Center (7.12)][2]  
*Example of available actions for blocking processes.*  

### <i class="fal fa-list" aria-hidden="true"></i> List blocked processes

Click **List blocked processes** in the **Action** menu. The **List blocked processes** dialog shows one row per blocked session, with the columns **SPID**, **Blocked By**, **Start Time**, **Status**, **Command**, **Database Id**, **Database Name**, **Wait Time**, and **Wait Type**.

![List blocked processes dialog with one suspended session blocked by SPID 123 on ContosoOrdersArchive, wait type LCK_M_X (7.12)][4]  
*Example of the blocking processes table.*  

Each row has its own **Actions** menu, where you can **Terminate** either the process being blocked or the process causing the block.

![Terminate SPID menu of a row with Terminate the running process and Terminate the blocked by process (7.12)][5]  
*Example of terminating actions for blocked processes.*  

* [Terminate the running process](#terminate-the-running-process)  
* [Terminate the blocked by process](#terminate-the-blocked-by-process)  

#### Terminate the running process

To terminate the running process, click **Terminate the running process** in the row's **Actions** menu.

Next, a modal appears to allow the [User][Users] in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][] to confirm the intent to proceed with the operation.

![Confirm intent to Terminate the running process][7]  
*Example of the confirmation modal for terminating the running process.*  

Whether successful or not, a message appears to inform about the result.

![Terminate the running process outcome][8]  
*Example of the outcome after terminating the running process.*  

#### Terminate the blocked by process

To terminate the blocked by process, click **Terminate the blocked by process** in the row's **Actions** menu.

Next, a modal appears to allow the [User][Users] in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][] to confirm the intent to proceed with the operation.

![Execute action? Are you sure that you want to Terminate the blocked by process 123? (7.12)][10]  
*Example of the confirmation modal for terminating the blocked by process.*  

Whether successful or not, a message appears to inform about the result: *Terminate Blocking Process: The blocking by process with SPID 'n' was successfully terminated*.

![Action dialog: Terminate Blocking Process, the blocking by process with SPID 123 was successfully terminated (7.12)][11]  
*Example of the outcome after terminating the blocked by process.*  

### <i class="fal fa-edit" aria-hidden="true"></i> Edit Thresholds

You can **Edit** the Monitoring thresholds for blocking SQL Server Processes. Click **Edit thresholds** in the **Action** menu.

A modal opens where the [User][Users] may tweak the **duration** in seconds threshold, triggering the **Error** or **Warning** state. The defaults come from the [Advanced tab](#fa-globe-global-configuration) (90 and 300 seconds).

![Edit thresholds dialog for Blocked processes with the Duration thresholds Warning 90 and Error 300 seconds (7.12)][14]  
*Example of the Edit Thresholds modal.*  

Click the **Save** button to persist changes.

____________________

## Troubleshooting

If you want to play with this feature, you can run the following query in two separate windows in [SSMS](https://learn.microsoft.com/en-us/ssms/release-notes-22)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>. The script causes the first session to acquire a lock, causing the second session to be blocked by the running process.

``` SQL
BEGIN TRANSACTION;   
    EXEC sp_getapplock @resource = 'Nodinite', @LockMode = 'Exclusive';  
    WAITFOR DELAY '00:13:37';
    EXEC sp_releaseapplock @resource = 'Nodinite';  
COMMIT TRANSACTION;
```

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

<i class="fal fa-display" aria-hidden="true"></i> [Add or manage Monitor View][]  
<i class="fal fa-edit" aria-hidden="true"></i> [Configuration][] - Configure global thresholds for SQL Blocking monitoring  

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

<i class="fal fa-shield-halved" aria-hidden="true"></i> [Secure Custom Database Scripts and Actions][]  
<i class="fal fa-database" aria-hidden="true"></i> [Database Monitoring Agent][] - Main overview of the Database Monitoring Agent  
<i class="fal fa-folder" aria-hidden="true"></i> [SQL Categories][] - Overview of all SQL Server monitoring features  
<i class="fal fa-database" aria-hidden="true"></i> [SQL Instance][] - Monitor SQL Server instance health and availability  
<i class="fal fa-database" aria-hidden="true"></i> [SQL Jobs][] - Monitor and manage SQL Server Agent Jobs  
<i class="fal fa-database" aria-hidden="true"></i> [SQL Backups][] - Monitor SQL Server backup status and history  
<i class="fal fa-database" aria-hidden="true"></i> [SQL Size Checks][] - Monitor database and log file sizes  
<i class="fal fa-code" aria-hidden="true"></i> [SQL Statements][] - Create custom TSQL monitoring queries  
<i class="fal fa-rocket" aria-hidden="true"></i> [Prerequisites for Database Monitoring Agent][] - Setup requirements  
<i class="fal fa-display" aria-hidden="true"></i> [Monitor Views][] - Organize resources into monitoring dashboards  
<i class="fal fa-lightbulb-on" aria-hidden="true"></i> [Resources][] - Understanding Nodinite resources  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/ResourcesByCategory.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/Actions.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/BlockingProcessedModal.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/TerminateActions.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/TerminateRunningProcessConfirmIntent.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/TerminateRunningProcessResultSuccessful.png
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/TerminateBlockedByProcessConfirmIntent.png
[11]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/TerminateBlockedByProcessResultSuccessful.png
[13]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/RemoteConfig/AdvancedTab.png
[14]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/EditThresholds.png
[15]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SQLBlocking/SqlBlocking_Detected.gif

[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/database/getting-started/configuration/
[Configuration Advanced Tab]:https://docs.nodinite.com/logging-and-monitoring/database/getting-started/configuration/#sql-server-advanced-tab
[Database Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/database/overview/
[Expected State]:https://docs.nodinite.com/administration/monitor-management/resources/features/expected-state/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Prerequisites for Database Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/database/getting-started/prerequisites/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Secure Custom Database Scripts and Actions]:https://docs.nodinite.com/logging-and-monitoring/database/troubleshooting/secure-custom-database-scripts-and-actions/
[SQL Backups]:https://docs.nodinite.com/logging-and-monitoring/database/features/sql-backups/overview/
[SQL Categories]:https://docs.nodinite.com/logging-and-monitoring/database/features/overview/
[SQL Instance]:https://docs.nodinite.com/logging-and-monitoring/database/features/sql-instance/overview/
[SQL Jobs]:https://docs.nodinite.com/logging-and-monitoring/database/features/jobs/overview/
[SQL Size Checks]:https://docs.nodinite.com/logging-and-monitoring/database/features/size-checks/sql-size-checks/
[SQL Statements]:https://docs.nodinite.com/logging-and-monitoring/database/features/sql-statements/sql-server-statements/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/
[Web Client]:https://docs.nodinite.com/getting-started/overview/