You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/queries/hints-transact-sql-query.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ ms.workload: "Active"
198
198
Overrides the **max degree of parallelism** configuration option of **sp_configure** and Resource Governor for the query specifying this option. The MAXDOP query hint can exceed the value configured with sp_configure. If MAXDOP exceeds the value configured with Resource Governor, the [!INCLUDE[ssDE](../../includes/ssde-md.md)] uses the Resource Governor MAXDOP value, described in [ALTER WORKLOAD GROUP (Transact-SQL)](../../t-sql/statements/alter-workload-group-transact-sql.md). All semantic rules used with the **max degree of parallelism** configuration option are applicable when you use the MAXDOP query hint. For more information, see [Configure the max degree of parallelism Server Configuration Option](../../database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option.md).
199
199
200
200
> [!WARNING]
201
-
> If MAXDOP is set to zero then the server chooses the max degree of parallelism.
201
+
> If MAXDOP is set to zero then the server chooses the max degree of parallelism.
202
202
203
203
MAXRECURSION *number*
204
204
Specifies the maximum number of recursions allowed for this query. *number* is a nonnegative integer between 0 and 32767. When 0 is specified, no limit is applied. If this option is not specified, the default limit for the server is 100.
@@ -237,7 +237,7 @@ ms.workload: "Active"
237
237
Specifies the parameterization rules that the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] query optimizer applies to the query when it is compiled.
238
238
239
239
> [!IMPORTANT]
240
-
> The PARAMETERIZATION query hint can only be specified inside a plan guide. It cannot be specified directly within a query.
240
+
> The PARAMETERIZATION query hint can only be specified inside a plan guide. It cannot be specified directly within a query.
241
241
242
242
SIMPLE instructs the query optimizer to attempt simple parameterization. FORCED instructs the optimizer to attempt forced parameterization. The PARAMETERIZATION query hint is used to override the current setting of the PARAMETERIZATION database SET option inside a plan guide. For more information, see [Specify Query Parameterization Behavior by Using Plan Guides](../../relational-databases/performance/specify-query-parameterization-behavior-by-using-plan-guides.md).
243
243
@@ -251,11 +251,10 @@ ms.workload: "Active"
251
251
252
252
If such a plan is not possible, the query optimizer returns an error instead of deferring error detection to query execution. Rows may contain variable-length columns; the [!INCLUDE[ssDE](../../includes/ssde-md.md)] allows for rows to be defined that have a maximum potential size beyond the ability of the [!INCLUDE[ssDE](../../includes/ssde-md.md)] to process them. Generally, despite the maximum potential size, an application stores rows that have actual sizes within the limits that the [!INCLUDE[ssDE](../../includes/ssde-md.md)] can process. If the [!INCLUDE[ssDE](../../includes/ssde-md.md)] encounters a row that is too long, an execution error is returned.
253
253
254
-
USE HINT ( **'***hint_name***'** )
255
-
**Applies to**: Applies to SQL Server (starting with 2016 SP1) and Azure SQL Database.
254
+
<aname="use_hint"></a> USE HINT ( **'***hint_name***'** )
255
+
**Applies to**: Applies to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)](starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]) and [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
256
256
257
257
Provides one or more additional hints to the query processor as specified by a hint name **inside single quotation marks**.
258
-
**Applies to**: Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] SP1.
0 commit comments