Can we create clustered index on non primary key column

Answer Posted / kaveri

Clustered index can be created in non primary key column
but the primary key column shoulb be created with non
clustered index. because by default primary key will have
clustered index. Each table should have only one clustered
index. So first we have to remove clustered index from
primary key column by creating it with non clustered index
and then create clustered index for non primary key column.

Note: The non primary key column should contain unique
values

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get @@error and @@rowcount at the same time?

784


What are the properties of the transactions?

830


What are four major operators that can be used to combine conditions on a where clause?

771


Why should we go for stored procedures? Why not direct queries?

764


What is the advantage of sql server?

754


Can we use where clause in union?

806


What is msdb database? : SQL Server Architecture

755


How to create dbo table in sql server?

711


Do you know what are the steps to process a single select statement?

720


Explain can SSRS reports Cache results?

136


what is the difference between delete table and truncate table commands? : Sql server database administration

726


What is a user-defined function in the sql server and what is its advantage?

833


What is an index. What are the types?

768


what is raid? : Sql server database administration

735


Who is the owner of a schema in ms sql server?

737