Check Free Space in .MDF

Reply

Join Date: May 2007
Posts: 3
Reputation: DVHSr is an unknown quantity at this point 
Solved Threads: 0
DVHSr DVHSr is offline Offline
Newbie Poster

Check Free Space in .MDF

 
0
  #1
Jun 8th, 2007
How do you check free space or space used within an MDF? The "Percent Log Used" performance condition alert doesn't check MDF files. The sp_spaceused is close, but combines all files, and sp_helpfile shows current file sizes and growth specs, but not free/used.

How do you programatically get the same values shown by ShrinkFile when in Management Studio?

Thanks - D
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: DVHSr is an unknown quantity at this point 
Solved Threads: 0
DVHSr DVHSr is offline Offline
Newbie Poster

Re: Check Free Space in .MDF

 
0
  #2
Jul 9th, 2007
FYI to those scratching your head on this... I found a solution using the fileproperty function. Thanks for looking.
- D
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MS SQL Forum


Views: 3213 | Replies: 1
Thread Tools Search this Thread



Tag cloud for MS SQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC