SQL Server with Mr. Denny » xp_fixeddrives2013-05-17T17:04:01Zhttp://itknowledgeexchange.techtarget.com/sql-server/feed/atom/Denny Cherryhttp://www.mrdenny.comhttp://itknowledgeexchange.techtarget.com/sql-server/checking-free-disk-space-from-tsql/2008-04-28T09:01:54Z2008-04-28T09:00:34ZI’ve seen some very creative ways to see how much free disk space SQL Servers have. Most make use of xp_cmdshell which some very complex dos commands or vbscripts.
However there is a much easier way. Microsoft has included the system extended stored procedure xp_fixeddrives. It returns the all the fixed drives and the amount of free space in megs.