• Aaron Ingold (10/3/2007)


    Boy, that's a question that could start forum wars... 😉

    First thing you have to understand is the difference between a clustered and nonclustered index. Clustered indexes define the physical sort order on disk of the whole table. Nonclustered indexes are seperate but connected to the table and store a small subset of the table, with pointers back to the location of the main table data.

    More often than not, the clustered index is going to have better performance when it is used. Not always, because I've seen fully covered queries by nonclustered indexes that were able to be fulfilled faster using a more narrow (meaning fewer bytes allocated to columns) than by a full clustered index scan. But you want to have your clustered index cover the most commonly scanned, data. Usually that's also your primary key (which is why a clustered index is created by default on a PK in SQL Server), though not always.

    Hi Aaron Ingold;

    Does Clusterd index define the physical sort order?

    Pls see the attached file(93.pdf) of MS press book's page of 'Self Passed TrainingKit Exam70-432'

    Please clear my doubt.

    Ali
    MCTS SQL Server2k8