Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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)

Disk Capacities

By Nicholas Williams,

Hey Guys,

This script will provide information on the drive capacities, in the form of total volume, used space, free space and then a percentage of used space.

Assuming that it is being executed on Windows Server 2003+ and the user calling it has permissions to run xp_cmdshell it should run without a problem

The script uses a built in tool present in Windows Server 2003 onwards, however this utility can be downloaded and deployed on other Windows Server operating systems. (Such as Windows Server 2000)

Hope you guys find it usefull!

Total article views: 4548 | Views in the last 30 days: 8
 
Related Articles
BLOG

Adding Space to a Home Server

I got new drives for my Windows Home Server the other day and decided to add some space to the...

SCRIPT

Check Free Disk Space for Multiple SQL Servers

Check Free Disk Space for Multiple SQL Servers.

FORUM

MSDTC in Windows 2008 server

MSDTC in Windows 2008 server

SCRIPT

Drive Space

Combine Drive Space report for all Servers

FORUM

White Space In SQL Server 2005

why aren't spaces counted?

Tags
capacity    
disk    
drive    
free space    
percentage    
size    
volume    
xp_cmdshell    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones