SQL Flow Field Guide

FROM ... WITH ( table_hint )

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

constrains access method or locking for one table reference

What changes

Input
none
Output or change
none

Syntax at a glance

table_or_view_name WITH ( <table_hint> [ [ , ] ...n ] )

Work example

A measured access or concurrency issue may call for a hint on one table reference.

Check the exact table scope and locking effect. Test with concurrent sessions and compare the actual plan.

Check your work FROM ... WITH ( table_hint ). Only the named table reference changes behavior and the intended rows remain the same.

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