Clustered or NonClustered Index?

  • Hi,

    A clustered index is created on primary key by default, however, if I have a query which requires a clustered index for better performance, shall I add subject columns to the PK clustered index or I shall change clustered index on primary key to non clustered and create another clustered index for that query?

  • That depends on your query .Either you can create a composite key using two columns or a clustered index on that particular column.

    If your queries mainly use that particular column other than present primary key then better create clustered index on that column which uses more frequently.:D

  • You got it right ratheesh.keep it up :hehe:

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply