SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Alert When Not Enough Free Disk Space

By damcalcan,

--Implement an Alert Which Trigger when Specified Disks
--free space exceeds a specified alert level

--Steps to implement:
--1) Define a Custom Error Message with messsage text (The ---drive free space is bellow alert level. Details: %s)

--2) Define an Alert linked to CEM defined at step 1

--3) Implement a Job which execute the following step in a recurring way...

--here you specify  the drives you are intersted in
--and the alert level...The unit measure for alert level is MB
DECLARE @Doc varchar (1000)

SET @Doc = '

EXEC dbo.usp_AlertOnDriveFreeSpaceLevel @Doc

Total article views: 2638 | Views in the last 30 days: 6
Related Articles

SQL Server Alerts

SQL Server Alerts provide a great way for the server to notify a DBA that some event has occurred, u...


User-Defined Roles

User-Defined ROLE under the database level


Best Practices: Defining Explicit Length for Varchar/Nvarchar

SA0080 : Do not use VARCHAR or NVARCHAR data types without specifying length. Level: Warning When u...


Stairway to T-SQL DML Level 3: Implementing a Relational Model in SQL Server

This level of the stairway details the creation of a relational database, as well as filling in some...



HELLO TEAM, I need a help on statement level recompile (syntax level) that can implement in sql serv...