June 22, 2004 09:22 PM
Optimizing Variables and Parameters
When the optimizer can't use its usual tools, give it a clue
Rating:

(0)
SQL Server Magazine
InstantDoc ID #42801
Last month, in "Inside Search Arguments" (InstantDoc ID 42349), I discussed specific types of search arguments—which I call SARGs—that are most beneficial to the query optimizer when it's determining the best execution plan for a query. In most of the examples I used, if the query didn't contain a SARG that included a specific column, SQL Server wouldn't consider any indexes on that column for the query plan.
Eve...
...This article is for paid Professional Members only.
Already a Professional Member? Please log in now: