Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why table scan?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01293823
Message ID:
01293923
Views:
40
>>No problem.
>>I am still not sure what happens.
>>Why if the index is primary it is used no matter what, if it is not it is not used.
>>If this is so what are the purpose of non primary indexes?
>>Because when you use JOIN you want to have fields from JOINed table, isn't it? :-)
>
>I got Index seek in both cases after I populated the tables. However, how can I copy the execution plan to the clipboard?

No need, I believe you.

INDEX SEEK for Test2?
With NO Primary key for it?
I just sent this test to my friend in Canada and she got the same result:
INDEX SEEK for first one and TABLE SCAN for second.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform