December 13, 2013 at 6:44 am
Hi all,
I've got a very large table (3M+) records with a decimal column that is too wide - it's defined as a DECIMAL(18,5), but a DECIMAL(9,3) will suffice. This should save me 4 bytes per row, but after an ALTER TABLE the space used is still the same. I know there's DBCC CLEANTABLE command to reclaim space when variable columns are changed, but does anyone how I can reclaim the space after changing the DECIMAL column?
Thanks in advance.
December 13, 2013 at 7:36 am
you have to rebuild all the indexes on the table, including the clustered index i believe in order to free the space to the database again.
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply