Can we create clustered index on non primary key column

Answer Posted / kaushik ganguly

We know sql server creates a clustered index by default
when we create a primary key. If you create a PK first and
then try to assign a candidate key a clustered index then
it is not possible bcos sql server allows one clustered
index per table.

But...

If you make a candidate key a clustered index and then
define the primary key sql server doesnot create clustered
index for the Primary Key column.

So the answer is yes...you can create a clustered index on
non-pk column :D

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a covering index?

722


Tell me what is use of except clause? How it differs from not in clause?

705


How do you delete duplicate records in sql server?

723


Explain how would you store your query in an SSRS report or a Database server?

102


Tell me can we use custom code in ssrs?

755






How to enforce security in sql server? : sql server security

802


Write a code to select distinct records without using the DISTINCT keyword.

849


What is @@error in sql?

799


When does a workload on SQL Azure get throttled?

127


How except clause is differs from not in clause?

702


can you instantiate a com object by using t-sql? : Sql server database administration

715


Can multiple columns be used in sql group by clause in ms sql server?

733


Can We Use Data-grids For Our Report In Ssrs?

163


How do you migrate data from mssql server to azure?

159


What is cursors?

810