SQL Server - Table has Composite Primary Key -


i have composite primary key in table. question, wouldn't clustered index begin in case not need define being clustered index.

yes, primary key default include clustered index long there not clustered index on table, , long don't explicitly specify non-clustered index.

from msdn:

when create primary key constraint, unique clustered index on column or columns automatically created if clustered index on table not exist , not specify unique nonclustered index. primary key column cannot allow null values.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -