In the context of SQL Server 2008.
I’m working on compressing and migrating values from a column with Text datatype to another one with Image datatype, same table. For now, we don’t want to drop the Text column. So, I’m just setting all the values of that column to NULL.
Does setting to NULL provide space gain right away? i.e. reduce database size?
Does dropping the column do that?
If not, what additional stuff needs to be done to claim that unused space?
To actually reduce the DATABASE size, you need to:
I do not recommend shrinking since it will cause fragmentation. However, the disk footprint of the database will not drop automatically. What you will have is a database with empty space inside it, which can be filled with more data/indexes without growing the database any further.