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

# :fa-database: SQL Server Blocking Processes

Proactively monitor and resolve SQL Server **blocking issues** with the :Nodinite: [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:

* **:fa-clock: Cause application timeouts** – Users experience slow response times or complete application failures
* **:fa-money-bill-wave: Impact revenue** – E-commerce transactions, order processing, and critical business operations grind to a halt
* **:fa-database: Cascade into deadlocks** – Multiple blocked processes can escalate into deadlock situations requiring intervention
* **:fa-users: Frustrate end users** – Poor performance damages user experience and productivity
* **:fa-chart-line: 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 :Nodinite: 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 :Nodinite: [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:

* :fa-shield-halved: **Protect production databases** – Ensure mission-critical SQL instances remain responsive
* :fa-business-time: **Support high-transaction environments** – Monitor OLTP systems where blocking frequently occurs
* :fa-clock: **Meet SLA commitments** – Detect and resolve issues before breaching performance agreements
* :fa-wrench: **Enable NOC/support teams** – Provide non-DBAs with safe, controlled remediation actions
* :fa-chart-mixed: **Identify performance bottlenecks** – Track blocking patterns to optimize queries and indexes
* :fa-calendar-days: **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].*  

## :fa-key: What are the key features of Monitoring Blocking processes?

* :fa-traffic-light-stop: **State Evaluation** – Monitors and evaluates the current state to ensure no process blocks another longer than the allowed duration.  
* :fa-bolt: [Actions](#fa-bolt-actions) – Support for the execution of [Remote Actions][]
  * :fa-list: [List blocked processes](#fa-list-list-blocked-processes)  
    * :fa-tombstone: [Terminate the blocked by process](#terminate-the-blocked-by-process)  
    * :fa-tombstone: [Terminate the running process](#terminate-the-running-process)  
  * :fa-edit: [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|:fa-bolt: 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>:fa-edit: [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|:fa-edit: [Edit configuration](#fa-edit-edit-thresholds)</br>:fa-tombstone: [Terminate running process](#terminate-the-running-process)</br>:fa-tombstone: [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*|:fa-edit: [Edit configuration](#fa-edit-edit-thresholds)</br>:fa-tombstone: [Terminate running process](#terminate-the-running-process)</br>:fa-tombstone: [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|:fa-edit: [Edit configuration](#fa-edit-edit-thresholds)|  

>[!TIP]
>The System Administrator can override the Monitoring state using the [Expected State][] feature on the [Resource][Resources] within :Nodinite:.

____________________

## :fa-globe: 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.*  

* :fa-square-check: **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)

## :fa-bolt: Actions

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

* :fa-edit: [Edit thresholds](#fa-edit-edit-thresholds)
* :fa-list: [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.*  

### :fa-list: 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 :Nodinite: [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 :Nodinite: [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.*  

### :fa-edit: 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>:fa-arrow-up-right-from-square:</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;
```

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

:fa-display: [Add or manage Monitor View][]  
:fa-edit: [Configuration][] - Configure global thresholds for SQL Blocking monitoring  

## :fa-link-horizontal: Related Topics

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

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

[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Database/Getting%20started/3.%20Configuration.md
[Configuration Advanced Tab]:{ndr}/Logging%20and%20Monitoring/Database/Getting%20started/3.%20Configuration.md#sql-server-advanced-tab
[Database Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Database/Overview.md
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Prerequisites for Database Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Database/Getting%20started/1.%20Prerequisites.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Secure Custom Database Scripts and Actions]:{ndr}/Logging%20and%20Monitoring/Database/Troubleshooting/Secure%20Custom%20Database%20Scripts%20and%20Actions.md
[SQL Backups]:{ndr}/Logging%20and%20Monitoring/Database/Features/SQL%20Backups/Overview.md
[SQL Categories]:{ndr}/Logging%20and%20Monitoring/Database/Features/Overview.md
[SQL Instance]:{ndr}/Logging%20and%20Monitoring/Database/Features/SQL%20Instance/Overview.md
[SQL Jobs]:{ndr}/Logging%20and%20Monitoring/Database/Features/Jobs/Overview.md
[SQL Size Checks]:{ndr}/Logging%20and%20Monitoring/Database/Features/Size%20Checks/SQL%20Size%20Checks.md
[SQL Statements]:{ndr}/Logging%20and%20Monitoring/Database/Features/SQL%20Statements/SQL%20Server%20-%20Statements.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md
[Web Client]:{ndr}/Getting%20Started/Overview.md