Monitoring Hard Drive Space | Database Journal

Monitoring Hard Drive Space

Written By
Tanya Stolyar
Tanya Stolyar
Jun 25, 2000
1 minute read

QL Server version 7.0 +

This script monitors available disk space for the specified drive.
If a drive name is not specified in @drivename parameter the
usp_dba_diskspace_monitor stored procedure will check all drives against a space limit (MB) passed through @spacelimit parameter.
If available disk space is less then @spacelimit an alert gets raised and sent to an operator.

A schedules job ‘# DBA – Monitor Disk Space’ allows you to automate the
monitoring. The run schedule can be modified according to DBA’s
requirements.

The diskspace_monitor.sql script consist of:

  • create a new message
  • create a new alert
  • stored procedure ‘usp_dba_diskspace_monitor’
  • scheduled job

Download diskspace_monitor.SQL

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.