Gulzar Siddique
Non Clustered Index on Primary Key

Can we create non-clustered index on primary key ?

Ans: Yes we can create non-clustered index on primay key in two ways.

  1. First, by default non-clustered index is created while we create a primary key on a column if clustered index exists on same table already.

  2. We can create non-clustered index on a column by explicitly defining while adding a primary key.

Example:

Alter table emp add primary key nonclustered (id)

By Gulzar Siddique in .NET on Aug 30 2019


Most Popular Job Functions


MOST LIKED QUESTIONS