November 26, 2013 at 10:01 am
I have a huge archive table in a lightly used archive database. We really don't need all the data in each row, and I was considering updating a lot of columns to NULL. Will that free up space for reuse, either with or without shrinking the database file ? I don't want to actually drop the unneeded columns because I might break applications that populate & use the table, but I would like to reclaim space.
(SQL 2008 R0, std ed.)
November 26, 2013 at 11:19 am
You'll definitely need to rebuild the clustered index to release the free space into the data file for reuse by other tables, may need to run DBCC CleanTable as well
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 26, 2013 at 9:11 pm
I also believe that type of thing will only work on variable length columns, as well.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2013 at 12:47 pm
You might want to consider table/index compression.
Edit: Sorry did not notice it was standard edition. Data compression not available
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply