I need to determine the available space on the drive where my database lives. I know about the xp_fixeddrives procedure but how do I get the info for the specific drive where my database resides?
+1
A:
Hi, take a look at this link
http://blog.sqlauthority.com/2010/01/02/sql-server-find-location-of-data-file-using-t-sql/
IordanTanev
2010-02-11 08:35:56
+1
A:
You haven't mentioned your version of SQL Server. Starting with SQL Server 2005 you can get plenty of information from sys.database_files and relate that to the output of xp_fixeddrives.
Frank Kalis
2010-02-11 08:39:29