Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usage of primary key in index
Message
 
 
To
19/03/2014 11:11:21
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01596859
Message ID:
01596874
Views:
32
>>Well, one option is to specify the index to use on the JOIN condition. However, utilizing optimizer's hints should be the last resort option. In any case, it would not hurt to try.
>
>It is possible that in those cases that it will never use the primary key?

Do you mean if you don't specify the index hint? SQL Server Optimizer is a complex product and how exactly does it decide what to use may not be immediately clear. So, I'd say it's possible.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform