Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized index not optimized
Message
From
31/10/2011 16:55:47
 
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01527723
Message ID:
01527731
Views:
31
>You may want to start reading from this article
>Parameter Sniffing
>
>and then proceed with this article
>http://www.sommarskog.se/query-plan-mysteries.html

I read the first article and applied some of that. The OPTION RECOMPILE completely destroyed the execution plan. Now, it doesn't want to use the index and falls in the lookup mode. Then, I tried the OPTIMIZE FOR approach and it forced it to use the index, but only one one server, which means that the same database setup on two servers may not react the same in the execution plan based on what was executed before.

I will read the second article now.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform