.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> SQL Query >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Find out Free disk space using SQL query

Posted By:Sajid P K       Posted Date: October 20, 2010    Points: 15    Category: SQL Query    URL: http://www.dotnetspark.com  

This code demonstrates use of master.sys.xp_fixeddrives. This returns all the drives available in the server and its free space in MB


Exec master.sys.xp_fixeddrives



Drive   MB Free
*****   *******
C         10002
D         20002
F         57481

This will be very useful before large data load operation.  We can check the disk space before starting the any large data load processes



Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend