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: 4474 | Views in the last 30 days: 9
 
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...

FORUM

MSDTC in Windows 2008 server

MSDTC in Windows 2008 server

FORUM

White Space In SQL Server 2005

why aren't spaces counted?

ARTICLE

Managing Disk Space

How often do you worry about your database size and free space? Steve Jones asks how you administer ...

FORUM

how to check that which are the mounted volume in Windows and total/free space avai

how to check that which are the mounted volume in Windows and total/free space avai

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