Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Lijo Cheeran Joseph
Posting Yak Master
123 Posts |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-03-09 : 10:10:52
|
| Very, very, very, very few. Only time you want to use hints is when you are absolutely certain that you know better than the optimiser for any and all possible calls to this query what the best way to run it is. You then need to test any and all possible calls to the query and ensure that your hints really do make the query faster. You need to continue testing at regular intervals to ensure that data changes (or patches) haven't made your hinted query less efficient than what the optimiser would have come up with itself.--Gail ShawSQL Server MVP |
 |
|
|
|
|
|