• p.s. Almost forgot... much more important than the "logical fragmentation" is "page density" (that % of page fullness thing) and rebuilding stats.  For GUID clustered indexes, don't worry about page density unless they go less than 68%.  The "Natural Fill Factor" for GUIDs over time pans out to about 69.5% and all pages will eventually be filled and split because of the random nature of the Type 4 GUIDs used nowadays.

    --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)