• Catcha (9/14/2012)


    Yes, with recreating the index I will use the following order

    Non-clustered -> primary key -> clustered

    So rebuilding of whole table will be performed last.

    Thought?

    Nope. Backwards. If you create the clustered index last, it will recreate all the other indexes. Recreating, clustered first, then everything else.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning