Hi
What are the difference between clustered and a non-clustered index in SQL Server ?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 12, 2012, 2:24 AM EDT
A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages.
A nonclustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a nonclustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.
Thanks
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 12, 2012, 3:16 AM EDT
Nonclustered indexes have the same B-tree structure as clustered indexes, with two significant differences:
The data rows are not sorted and stored in order based on their nonclustered keys.
The leaf layer of a nonclustered index does not consist of the data pages.
Clustered indexes sort and store the data rows in the table based on their key values.
Please refer
http://www.codeproject.com/Articles/173275/Clustered-and-Non-Clustered-Index-in-SQL-2005
http://www.sql-server-performance.com/forum/threads/cluster-and-non-cluster-index.6667/
hope this will help you.
Karthika Qpt3 reputationPosted Apr 17, 2016, 11:26 PM EDT
A non-clustered index requires separate storage than the table storage to store the index information.