30. Image courtesy of stockimages / FreeDigitalPhotos.net
Tip #1
Usually, data distribution is
more or less uniform, so, in
general, prefer parameterized
queries over non-
parameterized queries.
31. Image courtesy of stockimages / FreeDigitalPhotos.net
Tip #2
When data is not uniformly
distributed, rewrite your code
using one of the methods
shown in this session.
32. Image courtesy of stockimages / FreeDigitalPhotos.net
Tip #3
Avoid the use of local
variables as an alternative for
parameters.
Use parameters instead.
33. Image courtesy of stockimages / FreeDigitalPhotos.net
Tip #4
Don’t change parameter
values inside your stored
procedures.
Pass the calculated values to
inner stored procedures to
use parameter sniffing.
34. Image courtesy of stockimages / FreeDigitalPhotos.net
Tip #5
Force parameterization only
when you have no other
choice.
Prefer forced
parameterization at the
query template level.
38. Explore Everything PASS Has to Offer
Free SQL Server and BI Web Events Free 1-day Training Events Regional Event
Local User Groups Around
the World
Free Online Technical Training
This is Community Business Analytics Training
Session Recordings PASS Newsletter