mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Add related links
This commit is contained in:
@@ -9,7 +9,7 @@ This sample describes an option to update statistics on SQL Server PolyBase exte
|
||||
|
||||
In the process of configuring a maintenance plan for a SQL Server database with external tables and external data sources for PolyBase queries, an error occurred during the update statistics task.
|
||||
|
||||
## Problem Encountered
|
||||
## Problem encountered
|
||||
|
||||
While attempting to update statistics on an external table, the following error message was encountered:
|
||||
|
||||
@@ -60,11 +60,11 @@ Upon investigation, it became apparent that SQL Server does not support the dire
|
||||
|
||||
## Resolution steps
|
||||
|
||||
### Understanding the Limitation
|
||||
### Understanding the limitation
|
||||
|
||||
Referring to the documentation page, it explicitly states, "Updating statistics is not supported on external tables. To update statistics on an external table, drop and re-create the statistics."
|
||||
|
||||
### Available Solutions
|
||||
### Available solutions
|
||||
|
||||
* Option 1: Ignore External Tables:
|
||||
* This option is not feasible for maintenance plans managed by SQL Server Management Studio, necessitating third-party solutions.
|
||||
@@ -72,7 +72,7 @@ Referring to the documentation page, it explicitly states, "Updating statistics
|
||||
* Option 2: Drop and Recreate Statistics:
|
||||
* Employ a stored procedure, `sp_drop_create_stats_external_table`, to generate T-SQL statements for dropping and creating statistics on external tables. This procedure supports statistics on multiple columns.
|
||||
|
||||
### Implementation Guide
|
||||
### Implementation guide
|
||||
|
||||
- Execute `sp_drop_create_stats_external_table` to generate T-SQL statements
|
||||
- Execute DROP STATISTICS statements before the maintenance statistics task
|
||||
@@ -103,7 +103,11 @@ This code sample is provided for demonstration and educational purposes only. It
|
||||
|
||||
<a name=related-links></a>
|
||||
|
||||
## Related Links
|
||||
## Related links
|
||||
<!-- Links to more articles. Remember to delete "en-us" from the link path. -->
|
||||
|
||||
For more information, see these articles...
|
||||
For more information, see these articles:
|
||||
|
||||
- [Data virtualization with PolyBase in SQL Server](https://learn.microsoft.com/sql/relational-databases/polybase/polybase-guide?WT.mc_id=DP-MVP-4029181)
|
||||
- [UPDATE STATISTICS (Transact-SQL)](https://learn.microsoft.com/sql/t-sql/statements/update-statistics-transact-sql?WT.mc_id=DP-MVP-4029181)
|
||||
- [External tables: Why create statistics?](https://learn.microsoft.com/answers/questions/978155/external-tables-why-create-statistics?WT.mc_id=DP-MVP-4029181)
|
||||
|
||||
Reference in New Issue
Block a user