I have enabled sql profiler and identified several queries that are taking a long time to execute.
For example:
Select A from table_A where B = 2
My question is, based on above query, do I create indexes on column A or B? or A and B?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Index on
Bincluding columnA. The where can use a seek onBwhile still returningA.