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
If per partition statistics are not supported an error is generated. Incremental stats are not supported for following statistics types:
183
189
184
190
- Statistics created with indexes that are not partition-aligned with the base table.
185
-
186
191
- Statistics created on Always On readable secondary databases.
187
-
188
192
- Statistics created on read-only databases.
189
-
190
193
- Statistics created on filtered indexes.
191
-
192
194
- Statistics created on views.
193
-
194
195
- Statistics created on internal tables.
195
-
196
196
- Statistics created with spatial indexes or XML indexes.
197
197
198
198
**Applies to**: [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)].
199
199
200
+
MAXDOP = *max_degree_of_parallelism*
201
+
**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3).
202
+
203
+
Overrides the **max degree of parallelism** configuration option for the duration of the statistic operation. 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). Use MAXDOP to limit the number of processors used in a parallel plan execution. The maximum is 64 processors.
204
+
205
+
*max_degree_of_parallelism* can be:
206
+
207
+
1
208
+
Suppresses parallel plan generation.
209
+
210
+
\>1
211
+
Restricts the maximum number of processors used in a parallel statistic operation to the specified number or fewer based on the current system workload.
212
+
213
+
0 (default)
214
+
Uses the actual number of processors or fewer based on the current system workload.
215
+
216
+
> [!NOTE]
217
+
> Parallel statistics operations are not available in every edition of [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. For a list of features that are supported by the editions of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], see [Editions and Supported Features for SQL Server 2016](../../sql-server/editions-and-supported-features-for-sql-server-2016.md) and [Editions and Supported Features for SQL Server 2017](../../sql-server/editions-and-components-of-sql-server-2017.md).
The [sys.sql_expression_dependencies](../../relational-databases/system-catalog-views/sys-sql-expression-dependencies-transact-sql.md) catalog view tracks each column in the filtered statistics predicate as a referencing dependency. Consider the operations that you perform on table columns before creating filtered statistics because you cannot drop, rename, or alter the definition of a table column that is defined in a filtered statistics predicate.
223
243
224
244
## Limitations and Restrictions
225
-
* Updating statistics is not supported on external tables. To update statistics on an external table, drop and re-create the statistics.
226
-
* You can list up to 64 columns per statistics object.
245
+
* Updating statistics is not supported on external tables. To update statistics on an external table, drop and re-create the statistics.
246
+
* You can list up to 64 columns per statistics object.
247
+
* The MAXDOP option is not compatible with STATS_STREAM, ROWCOUNT and PAGECOUNT options.
0 commit comments