Share via

Specifying Query Plans with Plan Forcing

You can use the USE PLAN query hint to force the query optimizer to use a specified query plan for a query. The USE PLAN query hint can be used when the plan for the query is suboptimal and you know of a better execution plan for the query.

In This Section



Understanding Plan Forcing

Describes plan forcing, its uses, and its limitations.

Using the USE PLAN Query Hint

Explains how to implement plan forcing for a query using the USE PLAN query hint.

Using the USE PLAN Query Hint on Queries with Cursors

Explains USE PLAN support for queries submitted with cursors and how to force query plans for queries with cursors.

Plan Forcing Scenarios and Examples

Provides links to examples that use the USE PLAN query hint and creates a plan guide by using USE PLAN.

See Also

Other Resources