T-SQL Snack: How Much Free Storage Space is Available?

Posted by andyleonard on SQL Blog See other posts from SQL Blog or by andyleonard
Published on Thu, 27 May 2010 11:00:00 GMT Indexed on 2010/05/27 11:12 UTC
Read the original article Hit count: 208

Introduction Ever have a need to calculate the total available storage space for a server? Recently I did. Here's a solution I came up with - I bet someone can do this better! xp_fixeddrives There's a handy stored procedure called xp_fixeddrives that reports the available storage space: exec xp_fixeddrives This returns: drive MB free ----- ----------- C 6998 E 201066 Problem solved right? Maybe. The Sum What I really want is the sum total of all available space presented to the server. I built this...(read more)

© SQL Blog or respective owner

Related posts about Database Developer

Related posts about T-SQL Snack