To get free disk space for all physical drives on a machine we can use xp_fixeddrives extended stored procedure. An interesting this about this procedure is that it is not documented in books online.

EXEC xp_fixeddrives

Here is output on my machine.

xp_fixeddrives

Tagged with:
 

One Response to Get Free Disk Space Using T-SQL

  1. AAA says:

    not working

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>