OPTION clause
container for query hints on a statement
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
[ OPTION ( <query_hint> [ , ...n ] ) ]
Work example
A measured plan issue may call for the statement-level behavior in OPTION clause.
Capture the actual plan and reads first. Test one hint at a time with representative parameter values.
Check your work OPTION clause. The plan behavior for OPTION clause changes as intended and the result rows stay the same.
Open Microsoft Learn for full syntax, permissions, and details for your version.