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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Apr 9, 2012, 10:34 PM
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
Arun ChoudharyPosted Apr 9, 2012, 7:07 PM
MuthuMari MPosted Apr 9, 2012, 12:08 AM
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"
Jignesh TrivediPosted Apr 8, 2012, 11:51 PM
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.
SenthilkumarPosted Apr 8, 2012, 7:53 AM
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