Re: reclaiming LOB space

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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

.



Relevant Pages

  • Re: reclaiming LOB space
    ... Books Online says "Reclaims space from dropped variable-length ... But as I understood Mike, he did not drop the column, only setting the ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.server)
  • Re: recent drivel posted by Tony Rogerson on his blog
    ... to respond to a blog. ... You accept what you are used to as the norm, msdn is slow which is why I have books online installed locally, it has a link on the search through to the online version anyway - also out to a number of community sites my own included. ... Tony Rogerson, SQL Server MVP ... [UK SQL User Community] ...
    (comp.databases.oracle.server)
  • Re: Reading sequential files in COBOL vs SQL
    ... Obviously in COBOL I'd having to allow for reading a high ... |> | Mike Sicilian ... |> sequential search will be almost twice as fast as SQL because on average you will quit after reading half the file and SQL will ...
    (comp.sys.ibm.as400.misc)
  • Re: Batches
    ... "Mike" wrote in message ... >> building a single string I could have answered that more appropriately. ... >> Andrew J. Kelly SQL MVP ... >>> This is just the standard method of the built in .NET SQL Server data ...
    (microsoft.public.sqlserver.programming)
  • Re: Error after Install Sharepoint Service with SP1
    ... I completely miss the SQL 2005 piece. ... Mike Walsh, Helsinki, Finland ... > After I installed sharepoint service with SP1 in a box with SQL 2005 April> CTP of Window 2003, I encountered following error when access SharePoint ... I checked IIS log and my NT domain> name/ID was shown as authenticated user. ...
    (microsoft.public.sharepoint.windowsservices)