We are moving from SQL Server 2014 to 2017, I see in the options that we have Parameter Sniffing, I believe we should we keep it OFF, but what about the options that we used in 2014 to avoid that? can be affected in 2017, like creating local variables of the parameters and put option(recompile) to the queries.
SQL Server 2017 – Understanding Parameter Sniffing
sql server
Related Question
- SSRS 2014 – Troubleshooting Report Timeout
- Sql-server – Should you OPTIMIZE FOR default values in a dynamic search query
- SQL Server – How to Disable Parameter Sniffing for Better Performance
- SQL Server – How to Add OPTION(RECOMPILE) in a Stored Procedure
- SQL Server – Forcing Non-Null Plan Preparation for Queries with Variables
- SQL Server 2017 – Parameter Sniffing vs Parameterization Forced: Which Takes Precedence?
Best Answer
All the ways of influencing parameter sniffing before SQL 2017 remain. There's just a new database scoped configuration option to turn off parameter sniffing entirely.