ALTER INDEX REORGANIZE Compacts pages that contain large object (LOB) data. Does rebuilding also do it?

  • hi,

    ALTER INDEX REORGANIZE Compacts pages that contain large object (LOB) data.

    Does rebuilding also do it?

    yours sincerely

  • Wow! Great question. Books Online specifically identifies what will occur with LOBs during a REORGANIZE but says nothing specific about LOBs during REBUILDs. It does say that the index is actually dropped and rebuilt and one can infer that will include any LOB information either in the Clustered Index or INCLUDEs of non-Clustered Indexes but, lately, I'm a little gun-shy and I hate to make an assumption like that.

    Let's hope that Gail Shaw sees this. She's an MCM and has probably forgotten more about internals like this than most of us will ever learn.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply