SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 unallocated vs unused space
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ranvir_2k
Posting Yak Master

United Kingdom
153 Posts

Posted - 11/08/2013 :  10:11:03  Show Profile  Reply with Quote
Hi all,

I'm running out of space on my SQL Server box.

One of the large databases has 50% unallocated space and 1% unused space in the data file.

Can anyone tell me what the difference between unallocated and unused space is?

If I shrink the data file, can I get this 50% space back?

Or will a shrink only act on the 1% unused space?

Thanks

tkizer
Almighty SQL Goddess

USA
35937 Posts

Posted - 11/08/2013 :  10:54:36  Show Profile  Visit tkizer's Homepage  Reply with Quote
Yes you can get the space back if you shrink the data file. The unallocated space is space you can reclaim, basically free space. Unused space is reserved space that is not yet used. Data that has been deleted but not yet cleaned up by the ghost cleanup process will fall into that bucket.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000