Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.7 KB

hints-transact-sql.md

File metadata and controls

38 lines (33 loc) · 1.7 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords dev_langs monikerRange
Hints (Transact-SQL)
Hints are options or strategies specified for enforcement by the SQL Server query processor on SELECT, INSERT, UPDATE, or DELETE statements.
VanMSFT
vanto
randolphwest
03/07/2025
sql
t-sql
reference
ignite-2024
query optimizer [SQL Server], hints
hints [SQL Server], about hints
SELECT statement [SQL Server], hints
hints [SQL Server]
INSERT statement [SQL Server], hints
UPDATE statement [SQL Server], hints
DELETE statement [SQL Server], hints
TSQL
=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric

Hints (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-fabricse-fabricdw-fabricsqldb]

Hints are options or strategies specified for enforcement by the [!INCLUDE ssNoVersion] query processor on SELECT, INSERT, UPDATE, or DELETE statements. The hints override any execution plan the query optimizer might select for a query.

Caution

Because the [!INCLUDE ssNoVersion] query optimizer typically selects the best execution plan for a query, we recommend that <join_hint>, <query_hint>, and <table_hint> be used only as a last resort by experienced developers and database administrators.

The following hints are described in this section: