Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for best index
Message
 
 
To
04/03/2016 11:14:37
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows 2008 Server
Miscellaneous
Thread ID:
01632184
Message ID:
01632536
Views:
33
>>No, you do need to use parameterized approach. However, you may be running in parameters sniffing problem. If that's the case, addition OPTION (RECOMPILE) to the end of the query may fix the problem.
>
>So, SQL Server performs less with the parameterized approach. We just saw that in the new execution plan it would give. What do you recommand to keep the parameterized approach and keep the benefit of the optimized execution plan?

As I said, the problem we often ran into with parameters is called 'Parameter Sniffing' problem. There are several articles on this topic which you may want to read. Say, by Tibor K or by Erland S.
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