Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for best index
Message
 
 
To
04/03/2016 11:27:13
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:
01632539
Views:
32
>>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.
>
>Ok, but, what do you recommand in that situation for a change towards that direction.
>
>He did provide a solution that I believe would have allowed us to not run into an error when it happened in production. However, as is, it wouldn't be good to implement because of a risk factor. I do not know if a mix and match would apply in this case. For example, if I push the parameter value for the full text index directly in the command, as this is a CONTAINS function, would there be a risk factor in here for someone trying to hack something?

For the parameter's sniffing problem I recommend adding OPTION (RECOMPILE) to the end of the query.

I think there will be a risk factor if you try to embed parameters directly into a string to execute.
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