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 are the differences between char and varchar in ms sql server?

580


What is the default server name for sql server?

641


What is SQL Azure Firewall?

116


What is raid and what are different types of raid levels?

596


Explain sql delete command?

614






What is a rollup clause?

547


What is the difference between a check constraint and a rule?

626


How to create prepared statements using odbc_prepare()?

569


What's new in sql management studio for sql server? : sql server management studio

585


What is RMS migrations?

1709


Mention what are the different types of ssrs reports?

98


what is bit datatype? : Sql server database administration

508


How much is a sql server license?

510


What is data mart? : sql server analysis services, ssas

598


What is a performance monitor?

558