---
title: SQL Server Database Size Monitoring – Proactive Alerts, Shrink Actions, and Thresholds with Nodinite
description: Proactively monitor and control SQL Server database size with Nodinite. Instantly detect oversized databases, automate alerts, perform remote shrink actions, and ensure optimal performance and compliance.
---

# <i class="fal fa-database" aria-hidden="true"></i> Managing SQL Server Database Size Checks

Take control of your SQL Server database growth and performance with Nodinite's advanced size monitoring. This feature empowers you to:

* ✅ Instantly detect when SQL databases or transaction logs exceed defined size thresholds  
* ✅ Automate alerts for oversized databases or unavailable resources  
* ✅ Perform remote shrink actions directly from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>  
* ✅ Ensure compliance and optimize storage for cost savings  
* ✅ Visualize and manage all monitored databases in a single dashboard  

![A database whose transaction log is over the Warning size, Edit thresholds with specific values, Save, Shrink, and the database back to OK, animated walkthrough (7.12)][9]  
*Animated walkthrough: the transaction log of 'ContosoOrdersArchive' is over the global Warning size of 5 MB. **Edit thresholds**: specific sizes and a description, **Save**; then **Shrink** (confirm, result), and the [Resource][Resources] is re-evaluated as **OK**.*  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>On this page, you'll learn how to proactively monitor SQL Server database and transaction log sizes, receive automated alerts, and take direct action to resolve issues before they impact your business.</p></div>
</aside>

The [Database Monitoring Agent][] actively monitors the size of your configured **SQL Databases**. Each monitored database is represented in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> as a unique [Resource][Resources], providing real-time state evaluation. You can monitor size status using [Monitor Views][] and trigger external alerts through any installed [Alarm Plugins][].  

Unlike [Azure SQL Database Size Checks][Azure - SQL Size Checks], this feature also monitors the transaction log, giving you complete visibility into your on-premises SQL Server environment.  

Size check monitoring for **SQL Databases** groups [Resources][] by the [Category][Categories] **SQL Size Checks**:  
![A Monitor View filtered on the SQL Size Checks Category with ContosoOrdersArchive in Warning, Size Warning: The transaction log exceeds the Warning threshold (7.12)][4]  
*Example of a Monitor View filtered by the 'SQL Size Checks' category.*  

* Your **SQL Size Checks** within the SQL database(s) are listed in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> as [Resources][], where the name of the **SQL Database** becomes the [Resource][Resources] name.

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

*This diagram illustrates how each SQL Database is mapped to a monitored Resource in Nodinite for size tracking.*

## <i class="fal fa-key" aria-hidden="true"></i> What are the key features for Monitoring SQL Database Size Checks?

* **State Evaluation** – Instantly monitors and evaluates the size of each SQL database and transaction log  
* **Remote Actions** – Execute [Remote Actions][] such as threshold edits and database shrink directly from Nodinite  
* **Automated Alerts** – Receive notifications for oversized databases or unavailable resources  
* **Customizable Thresholds** – Set global or specific size thresholds for warnings and errors  
* **Centralized Visibility** – View all database and log sizes in a single dashboard for rapid response  

## What is evaluated for SQL Database Size Checks?

The different possible evaluated states for your **SQL Database** 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 'Database size' is not possible due to:<ul><li>Network or security-related problems</li><li>A specific configuration exists with a database that no longer exists</li></ul>|Review [prerequisites][Prerequisites for Database Monitoring Agent]|  
|❌ <span title="Used to indicate that an error or abnormal condition has been detected">Error</span>|**Error state raised**|The database or transaction log size is **above** the error threshold value, for example *Size Error: The transaction log exceeds the Error threshold of 20 MB*|<i class="fal fa-edit" aria-hidden="true"></i> [Edit](#fa-edit-edit-thresholds)|  
|⚠️ <span title="Used to indicate an unexpected but not invalid state">Warning</span>|**Warning state raised**|The database or transaction log size is **above** the warning threshold value, for example *Size Warning: The database exceeds the Warning threshold of 50 MB*|<i class="fal fa-edit" aria-hidden="true"></i> [Edit](#fa-edit-edit-thresholds)|  

When both the database and the transaction log are over a threshold, the Log Text has one line for each.
|✅ <span title="Used to indicate normal operation">OK</span>|**Online**|Database and log sizes are within defined thresholds|<i class="fal fa-edit" aria-hidden="true"></i> [Edit](#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-edit" aria-hidden="true"></i> How do I configure the thresholds for SQL Database Size Checks?

Monitoring of **SQL Database Size Checks** is enabled when the checkbox **Enable SQL database monitoring** is checked from within the [Remote Configuration][] dialogue for the [Database Monitoring Agent][]. When checked, the database provided by the ConnectionString is monitored.

There are two different ways to configure thresholds for the category **SQL Size Checks**:

* <i class="fal fa-globe" aria-hidden="true"></i> [Global configuration](#fa-globe-global-configuration)
* <i class="fal fa-edit" aria-hidden="true"></i> [Specific configuration](#fa-edit-edit-thresholds)
  
### <i class="fal fa-globe" aria-hidden="true"></i> Global configuration

In the [Remote Configuration][], open the **SQL Servers** tab, expand the **SQL Server Instance** accordion, and click its **Size checks** tab. The **Global** sub-tab holds the sizes for all databases of the instance; the **Specific** sub-tab holds one entry per database with its own sizes.  
![The Size checks tab of SQL Server Instance localhost in the Remote Configuration with the global Warning and Error sizes and the list of specific size checks (7.12)][3]  
*Example of the Size check tab with global monitoring thresholds for size-related checks.*  

![The expanded specific entry Size Check: ContosoOrdersArchive with Database Name, Description, and the Warning and Error sizes for the database and the transaction log (7.12)][2]  
*A specific entry for one database.*  

You can then edit the available properties.

* <i class="fal fa-square-check" aria-hidden="true"></i> **Enable Database Size Check Monitoring** – When checked, monitoring for database and log size is enabled
* <i class="fal fa-database" aria-hidden="true"></i> **Database Size**
  * ⚠️ **Warning**: Allowed size before state evaluates as Warning
  * ❌ **Error**: Allowed size before state evaluates as Error
* <i class="fal fa-file-lines" aria-hidden="true"></i> **Transaction Log Size**
  * ⚠️ **Warning**: Allowed size before state evaluates as Warning
  * ❌ **Error**: Allowed size before state evaluates as Error

___

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

The [Database Monitoring Agent][] category **SQL Size Checks** supports the following [Remote Actions][]:

* [Edit thresholds](#fa-edit-edit-thresholds)
* [Shrink](#fa-down-left-and-up-right-to-center-shrink) <sup><span class="nodinite-new-badge">New 6.1.0.0</span></sup>

 ![Action menu of a SQL Size Checks Resource with Edit thresholds and Shrink under Control Center (7.12)][1]  
 *Example of available Remote Actions for SQL Size Checks.*  

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

Click **Edit thresholds** in the **Action** menu to manage the specific monitoring thresholds. The dialog first shows facts about the database: **Used space**, **Used space Transaction Log**, **Collation**, **Recovery model**, and **Compatibility level**. Then come the **Database Size** and **Transaction Log Size** thresholds (**Warning** and **Error**, in MB) and a **Description**.  
 ![Edit thresholds dialog for ContosoOrdersArchive with used space, collation, recovery model, compatibility level, and the database and transaction log size thresholds (7.12)][5]  
 *Example of the dialogue for changing global thresholds to a specific threshold.*  

The **Default** values are set using [Remote Configuration][]. Review the [Global configuration](#fa-globe-global-configuration) section of this document for further details. The dialog says: *When you click the Save button, this database will be evaluated using specific size thresholds instead of global thresholds*.

The same properties as described in the [Global configuration](#fa-globe-global-configuration) are available, and in addition, the following can be managed:

* <i class="fal fa-align-left" aria-hidden="true"></i> **Description** – Short description for this specific size check  

![Edit thresholds dialog after Save with the specific sizes 100 and 200 MB and a description (7.12)][10]  
*The dialog after **Save**: the database now has its own thresholds.*  

### <i class="fal fa-down-left-and-up-right-to-center" aria-hidden="true"></i> Shrink

<sup><span class="nodinite-new-badge">New 6.1.0.0</span></sup> If the Windows account that runs the [Monitoring Agent][Monitoring Agents] has sufficient permissions, the end-user can invoke a background task to run a `DBCC SHRINKDATABASE (%databasename%)` command.

Click **Shrink** in the **Action** menu to invoke the background operation.  

Next, the end-user is prompted to confirm intent:  
![Execute action? confirmation to execute Shrink on resource ContosoOrdersArchive (7.12)][7]  
*You must confirm intent to proceed with the Shrink operation.*  

The answer shows in the same dialog: *Shrink Database: A background task has been started to perform a 'DBCC SHRINKDATABASE' operation on database '…'. NOTE: To be operational, the Service account in use must be part of the built in sysadmin role.* Review the diagnostics log to verify successful completion. If you open the [Edit thresholds](#fa-edit-edit-thresholds) modal, you should see a decrease in allocated space after waiting. The operation may take some time to complete depending on the amount of data to deallocate.  
![Action dialog: Shrink Database, a background task has been started to perform DBCC SHRINKDATABASE on ContosoOrdersArchive (7.12)][8]  

*Example of the Shrink operation output after successful completion.*  

## <i class="fal fa-save" aria-hidden="true"></i> Save

You must click '**Save**' or '**Save and close**' for changes to persist. The new settings/thresholds are evaluated on the next synchronization.  
![Save, Save and close, and Close buttons of the Remote Configuration dialog (7.12)][png_SaveAndClose]  
*Example of the Save options.*  

<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>Depending on the synchronization interval set for the agent, there might be a delay before the <a href="https://docs.nodinite.com/getting-started/overview/">Web Client</a> reflects upon the change. You can force the agent to synchronize the <a href="https://docs.nodinite.com/logging-and-monitoring/database/getting-started/configuration/">Configuration</a> for all <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/">Monitoring Agents</a>.</p></div>
</aside>

**Save and close** – Save and close the dialogue.  

**Close** – Close the dialogue without saving any changes.

## <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-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> [Azure - SQL Size Checks][]  
<i class="fal fa-database" aria-hidden="true"></i> [Database Monitoring Agent][]  
<i class="fal fa-folder" aria-hidden="true"></i> [SQL Categories][]  
<i class="fal fa-lightbulb-on" aria-hidden="true"></i> [Resources][]  
<i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Monitoring Agents][]  
<i class="fal fa-display" aria-hidden="true"></i> [Monitor Views][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/RemoteActions.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/SpecificDatabaseSizeCheckConfiguration.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/RemoteConfig/SizeCheckTab.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/CategorySQLSizeChecks.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/EditThresholds.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/ConfirmShrinkIntent.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/ShrinkSuccess.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/SqlSize_Threshold.gif
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SizeCheck/SpecificThresholdsSaved.png

[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/
[Azure - SQL Size Checks]:https://docs.nodinite.com/logging-and-monitoring/database/features/size-checks/azure-sql-size-checks/
[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/
[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/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[png_SaveAndClose]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SaveAndClose.png
[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/
[Remote Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/how-do-i-configure-a-monitor-agent/
[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 Categories]:https://docs.nodinite.com/logging-and-monitoring/database/features/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/