SQL Flow Field Guide

TABLE HINT FORCESEEK [ ( <index_value> ( <index_column_name> [ , ...n ] ) ) ]

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

Specifies that the query optimizer uses only an index seek operation as the access path to the data in the table or view.

What changes

Input
none
Output or change
none

Syntax at a glance

WITH ( FORCESEEK [ ( <index_value> ( <index_column_name> [ , ...n ] ) ) ] )

Work example

A measured plan issue may justify investigating TABLE HINT FORCESEEK [ ( <index_value> ( <index_column_name> [ , ...n ] ) ) ] for one known query shape.

Save the actual plan and runtime metrics first. Test representative parameter values and remove the hint if the plan no longer fits.

Check your work TABLE HINT FORCESEEK [ ( <index_value> ( <index_column_name> [ , ...n ] ) ) ]. The plan property affected by TABLE HINT FORCESEEK [ ( <index_value> ( <index_column_name> [ , ...n ] ) ) ] changes as intended and reads, duration, and result rows remain acceptable.

Open Microsoft Learn for full syntax, permissions, and details for your version.