At this point this is something between a test and a learning exercise.
The query I am using uses a udf in the where clause (I'll spare you the reasons) and this seems to prevent SQL from using the indexes. I've managed to add one hint, but haven't been able to use two.
quite often hints can be avoided by just structuring your queries in a different way.
especially look at joins, temp/variable tables and filtering criterias...
only recently, I turned a query which can take a minuite or more to run down to about 3 seconds or less just by changing the order of the table joins...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.