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
What is dirty page?
Difference between report and query parameter.
How you can get a list of all the table constraints in a database?
What are the advantages of user defined function?
What is the sql profiler?
What is stored in the mssqlsystemresource database? : sql server database administration
Describe and explain about SQL native client?
Explain index in sql server?
What is exporting utility?
What the different components in replication and what is their use?
What is the contrast between sql and pl/sql?
How to get a list of columns in a view using the "sp_help" stored procedure?
What is sql sandbox in sql server?
What is dbcc command in sql server?
Where do you find the default Index fill factor and how to change it?