Skip to content

Commit bc831bb

Browse files
authored
Update hints-transact-sql-query.md
1 parent e3fe9f6 commit bc831bb

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ Query hints specify that the indicated hints are used in the scope of a query. T
9292
| IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX
9393
| KEEP PLAN
9494
| KEEPFIXED PLAN
95-
| MAX_GRANT_PERCENT = <percent>
96-
| MIN_GRANT_PERCENT = <percent>
97-
| MAXDOP <number>
98-
| MAXRECURSION <number>
95+
| MAX_GRANT_PERCENT = <numeric_value>
96+
| MIN_GRANT_PERCENT = <numeric_value>
97+
| MAXDOP <integer_value>
98+
| MAXRECURSION <integer_value>
9999
| NO_PERFORMANCE_SPOOL
100100
| OPTIMIZE FOR ( @variable_name { UNKNOWN | = <literal_constant> } [ , ...n ] )
101101
| OPTIMIZE FOR UNKNOWN
102102
| PARAMETERIZATION { SIMPLE | FORCED }
103-
| QUERYTRACEON < number >
103+
| QUERYTRACEON <integer_value>
104104
| RECOMPILE
105105
| ROBUST PLAN
106106
| USE HINT ( <use_hint_name> [ , ...n ] )
@@ -210,25 +210,25 @@ IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX
210210

211211
Prevents the query from using a nonclustered memory optimized columnstore index. If the query contains the query hint to avoid the use of the columnstore index, and an index hint to use a columnstore index, the hints are in conflict and the query returns an error.
212212

213-
MAX_GRANT_PERCENT = <percent>
213+
MAX_GRANT_PERCENT = <numeric_value>
214214
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]) and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
215215

216-
The maximum memory grant size in PERCENT. The query is guaranteed not to exceed this limit. The actual limit can be lower if the Resource Governor setting is lower than the value specified by this hint. Valid values are between 0.0 and 100.0.
216+
The maximum memory grant size in PERCENT of configured memory limit. The query is guaranteed not to exceed this limit. The actual limit can be lower if the Resource Governor setting is lower than the value specified by this hint. Valid values are between 0.0 and 100.0.
217217

218-
MIN_GRANT_PERCENT = <percent>
218+
MIN_GRANT_PERCENT = <numeric_value>
219219
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]) and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
220220

221-
The minimum memory grant size in PERCENT = % of default limit. The query is guaranteed to get MAX(required memory, min grant) because at least required memory is needed to start a query. Valid values are between 0.0 and 100.0.
221+
The minimum memory grant size in PERCENT of configured memory limit. The query is guaranteed to get `MAX(required memory, min grant)` because at least required memory is needed to start a query. Valid values are between 0.0 and 100.0.
222222

223-
MAXDOP < number >
223+
MAXDOP <integer_value>
224224
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (starting with [!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)]) and [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
225225

226226
Overrides the **max degree of parallelism** configuration option of **sp_configure**. Also overrides the 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 &#40;Transact-SQL&#41;](../../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).
227227

228228
> [!WARNING]
229229
> If MAXDOP is set to zero, then the server chooses the max degree of parallelism.
230230
231-
MAXRECURSION <number>
231+
MAXRECURSION <integer_value>
232232
Specifies the maximum number of recursions allowed for this query. _number_ is a nonnegative integer between 0 and 32,767. When 0 is specified, no limit is applied. If this option isn't specified, the default limit for the server is 100.
233233

234234
When the specified or default number for MAXRECURSION limit is reached during query execution, the query ends and an error returns.
@@ -270,7 +270,7 @@ Specifies the parameterization rules that the [!INCLUDE[ssNoVersion](../../inclu
270270
271271
SIMPLE instructs the Query Optimizer to attempt simple parameterization. FORCED instructs the Query Optimizer to attempt forced parameterization. For more information, see [Forced Parameterization in the Query Processing Architecture Guide](../../relational-databases/query-processing-architecture-guide.md#ForcedParam), and [Simple Parameterization in the Query Processing Architecture Guide](../../relational-databases/query-processing-architecture-guide.md#SimpleParam).
272272

273-
QUERYTRACEON <number>
273+
QUERYTRACEON <integer_value>
274274
This option lets you to enable a plan-affecting trace flag only during single-query compilation. Like other query-level options, you can use it together with plan guides to match the text of a query being executed from any session, and automatically apply a plan-affecting trace flag when this query is being compiled. The QUERYTRACEON option is only supported for Query Optimizer trace flags. For more information, see [Trace Flags](../database-console-commands/dbcc-traceon-trace-flags-transact-sql.md#remarks).
275275

276276
> [!NOTE]

0 commit comments

Comments
 (0)