Hint to block key lookup, without forcing a particular index
Is there an index hint in T-SQL that says "do not use any nonclustered index that would require a key lookup"? Apart from that restriction I want to let the query planner have a free choice of indexes. I don't want to force one particular index as with (index(myindex)). And the forceseek hint doesn't exclude a key lookup after the seek. I have considered adding included columns, creating better statistics, or rewriting the query with an explicit join between the nonclustered index and the clustered index. Can this query hint be expressed in T-SQL?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.