QUERY HINT ROBUST PLAN
Forces the Query Optimizer to try a plan that works for the maximum potential row size, possibly at the expense of performance.
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
OPTION ( ROBUST PLAN )
Work example
A measured query issue may justify testing QUERY HINT ROBUST PLAN against the optimizer's default choice.
Capture the current plan, rows, reads, and elapsed time. Change one hint in a test copy and compare the same parameter values.
Check your work QUERY HINT ROBUST PLAN. The intended plan behavior for QUERY HINT ROBUST PLAN is visible and the result rows are unchanged across the comparison.
Open Microsoft Learn for full syntax, permissions, and details for your version.