Lesson 4 of 6 • 1 upvotes • 14:21mins
Few suggestible workarounds to address the issue: Create SQL server stored procedures using the with recompile option Use the SQL server hint option (recompile) Use the SQL server hint option (optimize for) Use dummy variables on SQL server stored procedures Disable SQL server parameter sniffing at the instance level Disable parameter sniffing for a specific SQL server query Disable specific trace flags (4136: disable parameter sniffing, 9481: disable new cardinality estimation) Enable trace flag 4199 (for optimizer fixes. Note: by-default optimizer fixes choice is off.)
6 lessons • 1h 27m
Parameter Sniffing in Sql Server and the Potential Solutions
15:00mins
Lesson #1: Parameter Sniffing: How it Hinders the DB Performance in SQL Server and Fixes
14:10mins
Lesson #2: Why Parameter Sniffing Degrades Performance?
15:00mins
Lesson #3: Symptoms of Parameter Sniffing
14:21mins
Lesson #4: Workaround of Parameter Sniffing using Practical Demo
15:00mins
Lesson #5: Conclusion - Summary Overview
13:47mins