Plan Forcing Scenarios and Examples
This section contains the following scenarios that show how to use the USE PLAN query hint to match queries with existing query plans by using tempdb and the AdventureWorks sample database:
- Plan Forcing Scenario: Use USE PLAN to Force a JOIN Algorithm
- Plan Forcing Scenario: Use USE PLAN to Force an Index Union Algorithm
- Plan Forcing Scenario: Create a Plan Guide That Uses a USE PLAN Query Hint
- Plan Forcing Scenario: Create a Plan Guide to Force a Plan Obtained from a Rewritten Query.
See Also
Concepts
Specifying Query Plans with Plan Forcing