Skip to content

Commit eb06b99

Browse files
authored
Merge pull request #4609 from pmasl/patch-134
Update hints-transact-sql-query.md
2 parents cb2a520 + ad57c30 commit eb06b99

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/t-sql/queries/hints-transact-sql-query.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ ms.workload: "Active"
198198
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).
199199

200200
> [!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.
202202
203203
MAXRECURSION *number*
204204
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"
237237
Specifies the parameterization rules that the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] query optimizer applies to the query when it is compiled.
238238

239239
> [!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.
241241
242242
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).
243243

@@ -251,11 +251,10 @@ ms.workload: "Active"
251251

252252
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.
253253

254-
USE HINT ( **'***hint_name***'** )
255-
**Applies to**: Applies to SQL Server (starting with 2016 SP1) and Azure SQL Database.
254+
<a name="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)].
256256

257257
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.
259258

260259
The following hint names are supported:
261260

0 commit comments

Comments
 (0)