﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / Getting space back after manually deleting records / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 18:30:26 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Getting space back after manually deleting records</title><link>http://www.sqlservercentral.com/Forums/Topic1373473-149-1.aspx</link><description>If you want to release space on disk then you need to shrink the database.  See DBCC SHRINKDATABASE.  Beware, though - if your database is likely to grow again then you're wasting resources by shrinking it, as well as causing internal and external fragmentation.John</description><pubDate>Fri, 19 Oct 2012 01:33:53 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: Getting space back after manually deleting records</title><link>http://www.sqlservercentral.com/Forums/Topic1373473-149-1.aspx</link><description>Thanx Greatly !!!!</description><pubDate>Thu, 18 Oct 2012 08:48:30 GMT</pubDate><dc:creator>chilidogie</dc:creator></item><item><title>RE: Getting space back after manually deleting records</title><link>http://www.sqlservercentral.com/Forums/Topic1373473-149-1.aspx</link><description>[quote][b]chilidogie (10/16/2012)[/b][hr]We have a database with lab tests that we are going to merge with a different database.  The original has 8,000,000 records.  The new one can only bring in 100,000 at a time.  I am copying the database, then deleting down to 100,000 records.  However, the space on disk remains the same.  Do I need to pack the database somehow to regain the space ?Thanx ![/quote]Yes.  Rebuild the clustered index to recover the table space and rebuild the non-clustered indexes to regain the index space.</description><pubDate>Tue, 16 Oct 2012 16:09:55 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>Getting space back after manually deleting records</title><link>http://www.sqlservercentral.com/Forums/Topic1373473-149-1.aspx</link><description>We have a database with lab tests that we are going to merge with a different database.  The original has 8,000,000 records.  The new one can only bring in 100,000 at a time.  I am copying the database, then deleting down to 100,000 records.  However, the space on disk remains the same.  Do I need to pack the database somehow to regain the space ?Thanx !</description><pubDate>Tue, 16 Oct 2012 12:45:40 GMT</pubDate><dc:creator>chilidogie</dc:creator></item></channel></rss>