Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execution Plan differs based on pkfield vs multifields
Message
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Title:
Execution Plan differs based on pkfield vs multifields
Miscellaneous
Thread ID:
01531644
Message ID:
01531644
Views:
76
If I issue select pk from MyTable where MyNonUniqueColumn = 123

the execution plan shows it uses an Index Seek on MyNonUniqueColumn index (is good)

if instead I issue select pk,field2,field3,etc,etc. from MyTable where MyNonUniqueColumn = 123

the execution plan now shows it's using a Clustered Index Scan on my PK index!

What's going on here?
Brandon Harker
Sebae Data Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform