Hi,
Ques I want to know that how many clustered indexes can be created on a table ?
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
SenthilkumarRank #387 · 6.5K reputationPosted Apr 8, 2012, 3:53 AM EDT
A table can have only one clustered index.
If you have a primary or unique key for the column then it will create the clustered index by default. As you know, a table can have only one primary key. when you create the primary key it will create automatically.
When ever you to DML operations on the table then it will do sorting automatically based on the key created on the column.
You can see the created index by using the following statement:
sp_helpindex table_name
SELECT * FROM sys.indexes
For more info:
http://msdn.microsoft.com/en-us/library/aa933131(v=sql.80).aspx
http://www.c-sharpcorner.com/Forums/Thread/167764/index-in-sql-server.aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 8, 2012, 7:51 PM EDT
SQL Server 2005
1 Clustered Index + 249 Nonclustered Index = 250 Index
http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx
SQL Server 2008
1 Clustered Index + 999 Nonclustered Index = 1000 Index
http://msdn.microsoft.com/en-us/library/ms143432.aspx
hope this help.
MuthuMari MRank #5,738 · 288 reputationPosted Apr 8, 2012, 8:08 PM EDT
a clustered index physically arranges all data in a table sequential manner.
So you can not have more than one physical arrangements of data in a table,
you have one clustered index per table.
thanks.
If this post is useful then mark it as "Accepted Answer"
Arun ChoudharyRank #146 · 15.6K reputationPosted Apr 9, 2012, 3:07 PM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 9, 2012, 6:34 PM EDT
A table can have only one clustered index.
Also
Please refer Our recommended articles
http://www.c-sharpcorner.com/uploadfile/6897bc/clustered-and-non-clustered-index-in-sql-2005/default.aspx
http://www.c-sharpcorner.com/uploadfile/nipuntomar/clustered-index-and-non-clustered-index-in-sql-server/default.aspx
Thanks