We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


DBCC Cleantable not reclaimimn space

jflanner asked
Medium Priority
Last Modified: 2012-06-27

I have a table which sp_spaceused tells me has a gig of unused space.  I'd like to reorganize the table to reclaim the space.  I did a dbcc cleantable('db', 'table').   After minutes of work, the dbcc ended reporting success.  But, sp_spaceused still tells me the dbcc had no effect.  The unused space is still unclaimed.

Can any one tell me how to get this table to give up it's unused space?

Watch Question

Top Expert 2012
>>Can any one tell me how to get this table to give up it's unused space?<<
Unless space is a premium, in general it is not recommended to do this.  However, if you insist take a look at the DBCC SHRINKDATABASE and DBCC SHRINKFILE functions in Books Online.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.