Re: reclaiming LOB space
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 7 Dec 2009 22:26:21 +0000 (UTC)
Russell Fields (russellfields@xxxxxxxxxx) writes:
You should be able to use DBCC CLEANTABLE to resolve your problem.
Hmm, Books Online says "Reclaims space from dropped variable-length columns
in tables or indexed views."
But as I understood Mike, he did not drop the column, only setting the
compressed rows to NULL.
Instead I think Mike should use
ALTER INDEX cluster_ix ON TBL REORGANIZE WITH (LOB_COMPACTION = ON)
ALTER INDEX is an online operation, so Mike should be able to run it
in his 24*7 shop, although it will incur some load. I added WITH
LOB_COMPACTION = ON here, but in fact, REORGANIZE implies compaction of
LOB storage by default.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: reclaiming LOB space
- From: Jay
- Re: reclaiming LOB space
- References:
- reclaiming LOB space
- From: Mike Kraley
- Re: reclaiming LOB space
- From: Russell Fields
- reclaiming LOB space
- Prev by Date: Re: disable the builtin\administrators group
- Next by Date: how to split the value
- Previous by thread: Re: reclaiming LOB space
- Next by thread: Re: reclaiming LOB space
- Index(es):
Relevant Pages
|