SQL Flow Field Guide

Join hint in FROM

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

forces the physical join algorithm for one join

What changes

Input
none
Output or change
none

Syntax at a glance

table_source { INNER | LEFT | RIGHT | FULL } [ OUTER ] { LOOP | HASH | MERGE | REMOTE } JOIN table_source ON ...

Work example

A measured join-plan issue needs one join hint tested against SQL Server's default choice.

Capture the unhinted plan, reads, and runtime. Change one hint in a test copy and run several parameter values.

Check your work Join hint in FROM. The intended join algorithm appears and the result rows and representative runtimes remain acceptable.

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