Hi All
This is regarding indexes in MSSQL.
I have a query which takes long time ( while populating data from ResultSet ) when large number of users are online.
It is a select query with some joins in it.
I wanted to index all columns in the joins and in the where clause.
When I open MSSQL studio, and see the indexes for a table it shows some of these columns in the indexes as a primary key.
My doubt is that are all the primary keys indexed by default or do I need to index the columns explicitly.
Please help me by clarifying it. Also, what are the probable reasons of a query taking long only when the number of concurrent users are higher.
The primary keys are composit... found
this about clustered indexes