Definition of Clustered and Non-Clustered Index.

In SQL server there are two kinds of indexes, one is clustered and other is non-clustered indexes.

Clustered Index = Clustered index reorders the records in other way from which they are physically stored. It can have only one clustered index. The leaf node of clustered index contains the data pages.

Non–Clustered Index = A non-clustered index stores the logical order of the records which doesn’t match the physical stored orders of the rows. The leaf nodes of a non-clustered index do not consist of data pages but it contains the index of rows. Each index row contains non-clustered key value and one or more row locators points to the data rows having key value.


Comments

No responses found. Be the first to comment...