Rebuilding All Indexes

  • Comments posted to this topic are about the item Rebuilding All Indexes

  •  

    ALTER INDEX ALL ON dbo.CustomerContact

     

    will return an error, because it misses REBUILD or REORGANIZE. It should be

    ALTER INDEX ALL ON dbo.CustomerContact REBUILD

     

     

  • Shouldn't the last command in the CREATE INDEX commands have been

    CREATE INDEX IX_CustomerContact_CustomerPhone

    ON dbo.CustomerContact (phone);

  • yaroslav.dintchev wrote:

    <code class="lang-tsql hljs">ALTER INDEX ALL ON dbo.CustomerContact

    will return an error, because it misses REBUILD or REORGANIZE. It should be

    <code class="lang-tsql hljs">ALTER INDEX ALL ON dbo.CustomerContact REBUILD

    Yay!  Someone else caught the flaw!

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

  • apologies for the typos. Kept going back and forth between the query and the editing of the question.

    Typos fixed, points awarded back

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

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