We help IT Professionals succeed at work.
Get Started

Reclaiming Space on SQL Server 2008 R2

Last Modified: 2012-08-13
I have a database in which I dropped several large tables.  I would like to reclaim the unused space.  The size of the database was 51gig.  Then I backed up the database.  The size of the database backup went from 41gig to 15gig.   Then I restored the database from the new backup of 15gig.  The database size did not change from it's original size.  It was still 51gig.

When I run sp_spaceused, I get the following results:
database_name     database_size      unallocated space
Aspx2_DW              51703.25 MB       37062.80 MB

reserved            data                      index_size         unused
14948552 KB    13621488 KB       1307704 KB      19360 KB

I also ran dbcc updateusage (aspx2_dw) which did nothing.  How can I reclaim the unused space?

Watch Question
This problem has been solved!
Unlock 3 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE