SQL Flow Field Guide

OPTION clause

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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.