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 are a scheduled jobs or what is a scheduled tasks?
What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?
Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?
What are commonly used odbc functions in php?
What is sql view?
What is cached report?
What is the difference between function and stored procedure in sql server?
How would we use distinct statement? What is its use?
Does sql server 2000 full-text search support clustering?
Detail about query optimizer?
Difference between uniqe index and uniqe constraint?
What are synonyms?
How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?
What is the difference between getdate and sysdatetime?
Can select statements be used on views in ms sql server?