Get Free Disk Space Using T-SQL
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.
![]()
Tagged with: Code Snippets







not working