| title | Hints (Transact-SQL) | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Hints are options or strategies specified for enforcement by the SQL Server query processor on SELECT, INSERT, UPDATE, or DELETE statements. | |||||||
| author | VanMSFT | |||||||
| ms.author | vanto | |||||||
| ms.reviewer | randolphwest | |||||||
| ms.date | 03/07/2025 | |||||||
| ms.service | sql | |||||||
| ms.subservice | t-sql | |||||||
| ms.topic | reference | |||||||
| ms.custom |
|
|||||||
| helpviewer_keywords |
|
|||||||
| dev_langs |
|
|||||||
| monikerRange | =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric || =fabric-sqldb |
[!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: