Skip to content

Commit cea893e

Browse files
committed
Merge branch 'main' into release-mi
2 parents 07b4cbc + baf8dc0 commit cea893e

9 files changed

Lines changed: 100 additions & 96 deletions

azure-sql/managed-instance/log-replay-service-migrate.md

Lines changed: 79 additions & 45 deletions
Large diffs are not rendered by default.

azure-sql/managed-instance/managed-instance-link-feature-overview.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.topic: conceptual
1111
author: danimir
1212
ms.author: danil
1313
ms.reviewer: mathoma, danil
14-
ms.date: 07/08/2022
14+
ms.date: 07/12/2022
1515
---
1616
# Link feature for Azure SQL Managed Instance (preview)
1717
[!INCLUDE[appliesto-sqlmi](../includes/appliesto-sqlmi.md)]
@@ -135,7 +135,8 @@ Managed Instance link has a set of general limitations, and those are listed in
135135
- If transactional replication is used with a database on SQL Server in the case of a migration scenario, during failover to Azure, transactional replication on SQL Managed Instance will fail and should be manually reconfigured.
136136
- In case distributed transactions are used with database replicated from the SQL Server, and in case of migration scenario, on the cutover to the cloud, the DTC capabilities won't be transferred. There will be no possibility for migrated database to get involved in distributed transactions with SQL Server, as SQL Managed Instance doesn't support distributed transactions with SQL Server at this time. For reference, SQL Managed Instance today supports distributed transactions only between other SQL Managed Instances, see [this article](../database/elastic-transactions-overview.md#transactions-for-sql-managed-instance).
137137
- Managed Instance link can replicate database of any size if it fits into chosen storage size of target SQL Managed Instance.
138-
- SQL Server 2008, 2012 and 2014 cannot be supported by the link, as SQL engines of these releases do not have built-in support for Availability Groups, required for the link. Upgrade to a newer version of SQL Server is required to be able to use the link.
138+
- Client Windows OS 10 and 11 cannot be used to host your SQL Server, as it will not be possible to enable Always On required for the link. SQL Server must be hosted on Windows Server 2012 or higher.
139+
- SQL Server 2008, 2012 and 2014 cannot be supported for the link feature, as SQL engines of these releases do not have built-in support for Always On, required for the link. Upgrade to a newer version of SQL Server is required to be able to use the link.
139140

140141
### Preview limitations
141142

docs/integration-services/advanced-editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ms.author: chugu
2323
[!INCLUDE[sqlserver-ssis](../includes/applies-to-version/sqlserver-ssis.md)]
2424

2525

26-
Use the **Advanced Editor** dialog box to configure to configure properties for the selected [!INCLUDE[ssISnoversion](../includes/ssisnoversion-md.md)] object.
26+
Use the **Advanced Editor** dialog box to configure properties for the selected [!INCLUDE[ssISnoversion](../includes/ssisnoversion-md.md)] object.
2727

2828
The **Advanced Editor** is available for most [!INCLUDE[ssISnoversion](../includes/ssisnoversion-md.md)] objects that have configurable properties. It is the only editor available for those objects that do not expose a custom user interface.
2929

docs/relational-databases/system-catalog-views/sys-pdw-column-distribution-properties-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ monikerRange: ">=aps-pdw-2016||=azure-sqldw-latest"
2222
|-----------------|---------------|-----------------|-----------|
2323
|**object_id**|**int**|ID of the object to which the column belongs.||
2424
|**column_id**|**int**|ID of the column.||
25-
|**distribution_ordinal**|**tinyint**|Ordinal (1-based) within set of distribution.|0 = Not a distribution column. 1 or >1 = [!INCLUDE[ssSDW](../../includes/sssdw-md.md)] is using this column to distribute the parent table.|
25+
|**distribution_ordinal**|**tinyint**|Ordinal (1-based) within set of distribution.|0 = Not a distribution column. 1 = [!INCLUDE[ssSDW](../../includes/sssdw-md.md)] is using this column to distribute the parent table.|
2626

2727
## See Also
2828
[Azure Synapse Analytics and Parallel Data Warehouse Catalog Views](../../relational-databases/system-catalog-views/sql-data-warehouse-and-parallel-data-warehouse-catalog-views.md)

docs/t-sql/queries/explain-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Return the query plan with recommendations to optimize the SQL statement perform
7474

7575
|Operation Type|Content|Example|
7676
|--------------------|-------------|-------------|
77-
|BROADCAST_MOVE, DISTRIBUTE_REPLICATED_TABLE_MOVE, MASTER_TABLE_MOVE, PARTITION_MOVE, SHUFFLE_MOVE, and TRIM_MOVE|`<operation_cost>` element, with these attributes. Values reflect only the local operation:<br /><br /> - *cost* is the local operator cost and shows the estimated time for the operation to run, in ms.<br />- *accumulative_cost* is the sum of all seen operations in the plan including summed values for parallel operations, in ms.<br />- *average_rowsize* is the estimated average row size (in bytes) of rows retrieved and passed during the operation.<br />- *output_rows* is the output (node) cardinality and shows the number of output rows.<br /><br /> `<location>`: The nodes or distributions where the operation will occur. Options are: "Control", "ComputeNode", "AllComputeNodes", "AllDistributions", "SubsetDistributions", "Distribution", and "SubsetNodes".<br /><br /> `<source_statement>`: The source data for the shuffle move.<br /><br /> `<destination_table>`: The internal temporary table the data will be moved into.<br /><br /> `<shuffle_columns>`: (Applicable only to SHUFFLE_MOVE operations). One or more columns that will be used as the distribution columns for the temporary table.|`<operation_cost cost="40" accumulative_cost="40" average_rowsize = "50" output_rows="100"/>`<br /><br /> `<location distribution="AllDistributions" />`<br /><br /> `<source_statement type="statement">SELECT [TableAlias_3b77ee1d8ccf4a94ba644118b355db9d].[dist_date] FROM [qatest].[dbo].[flyers] [TableAlias_3b77ee1d8ccf4a94ba644118b355db9d] </source_statement>`<br /><br /> `<destination_table>Q_[TEMP_ID_259]_[PARTITION_ID]</destination_table>`<br /><br /> `<shuffle_columns>dist_date;</shuffle_columns>`<br /><br /> `<shuffle_columns>Email;Date;</shuffle_columns>` - Preview|
77+
|BROADCAST_MOVE, DISTRIBUTE_REPLICATED_TABLE_MOVE, MASTER_TABLE_MOVE, PARTITION_MOVE, SHUFFLE_MOVE, and TRIM_MOVE|`<operation_cost>` element, with these attributes. Values reflect only the local operation:<br /><br /> - *cost* is the local operator cost and shows the estimated time for the operation to run, in ms.<br />- *accumulative_cost* is the sum of all seen operations in the plan including summed values for parallel operations, in ms.<br />- *average_rowsize* is the estimated average row size (in bytes) of rows retrieved and passed during the operation.<br />- *output_rows* is the output (node) cardinality and shows the number of output rows.<br /><br /> `<location>`: The nodes or distributions where the operation will occur. Options are: "Control", "ComputeNode", "AllComputeNodes", "AllDistributions", "SubsetDistributions", "Distribution", and "SubsetNodes".<br /><br /> `<source_statement>`: The source data for the shuffle move.<br /><br /> `<destination_table>`: The internal temporary table the data will be moved into.<br /><br /> `<shuffle_columns>`: (Applicable only to SHUFFLE_MOVE operations). One or more columns that will be used as the distribution columns for the temporary table.|`<operation_cost cost="40" accumulative_cost="40" average_rowsize = "50" output_rows="100"/>`<br /><br /> `<location distribution="AllDistributions" />`<br /><br /> `<source_statement type="statement">SELECT [TableAlias_3b77ee1d8ccf4a94ba644118b355db9d].[dist_date] FROM [qatest].[dbo].[flyers] [TableAlias_3b77ee1d8ccf4a94ba644118b355db9d] </source_statement>`<br /><br /> `<destination_table>Q_[TEMP_ID_259]_[PARTITION_ID]</destination_table>`<br /><br /> `<shuffle_columns>dist_date;</shuffle_columns>`|
7878
|MetaDataCreate_Operation|`<source_table>`: The source table for the operation.<br /><br /> `<destination_table>`: The destination table for the operation.|`<source_table>databases</source_table>`<br /><br /> `<destination_table>MetaDataCreateLandingTempTable</destination_table>`|
7979
|ON|`<location>`: See `<location>` above.<br /><br /> `<sql_operation>`: Identifies the SQL command that will be performed on a node.|`<location permanent="false" distribution="AllDistributions">Compute</location>`<br /><br /> `<sql_operation type="statement">CREATE TABLE [tempdb].[dbo]. [Q_[TEMP_ID_259]]_ [PARTITION_ID]]]([dist_date] DATE) WITH (DISTRIBUTION = HASH([dist_date]),) </sql_operation>`|
8080
|RemoteOnOperation|`<DestinationCatalog>`: The destination catalog.<br /><br /> `<DestinationSchema>`: The destination schema in DestinationCatalog.<br /><br /> `<DestinationTableName>`: Name of the destination table or "TableName".<br /><br /> `<DestinationDatasource>`: Name of the destination datasource.<br /><br /> `<Username>` and `<Password>`: These fields indicate that a username and password for the destination may be required.<br /><br /> `<CreateStatement>`: The table creation statement for the destination database.|`<DestinationCatalog>master</DestinationCatalog>`<br /><br /> `<DestinationSchema>dbo</DestinationSchema>`<br /><br /> `<DestinationTableName>TableName</DestinationTableName>`<br /><br /> `<DestinationDatasource>DestDataSource</DestinationDatasource>`<br /><br /> `<Username>...</Username>`<br /><br /> `<Password>...</Password>`<br /><br /> `<CreateStatement>CREATE TABLE [master].[dbo].[TableName] ([col1] BIGINT) ON [PRIMARY] WITH(DATA_COMPRESSION=PAGE);</CreateStatement>`|

docs/t-sql/statements/alter-database-transact-sql-compatibility-level.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "ALTER DATABASE compatibility level (Transact-SQL)"
33
description: ALTER DATABASE compatibility level (Transact-SQL)
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: 01/26/2022
6+
ms.date: 07/11/2022
77
ms.prod: sql
88
ms.prod_service: "database-engine, sql-database"
99
ms.technology: t-sql
@@ -35,7 +35,7 @@ For more information about the syntax conventions, see [Transact-SQL Syntax Conv
3535

3636
```syntaxsql
3737
ALTER DATABASE database_name
38-
SET COMPATIBILITY_LEVEL = { 150 | 140 | 130 | 120 | 110 | 100 | 90 }
38+
SET COMPATIBILITY_LEVEL = { 160 | 150 | 140 | 130 | 120 | 110 | 100 | 90 }
3939
```
4040

4141
[!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)]
@@ -45,7 +45,7 @@ SET COMPATIBILITY_LEVEL = { 150 | 140 | 130 | 120 | 110 | 100 | 90 }
4545
*database_name*
4646
Is the name of the database to be modified.
4747

48-
COMPATIBILITY_LEVEL { 150 \| 140 \| 130 \| 120 \| 110 \| 100 \| 90 \| 80 }
48+
COMPATIBILITY_LEVEL { 160 \| 150 \| 140 \| 130 \| 120 \| 110 \| 100 \| 90 \| 80 }
4949
Is the version of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] with which the database is to be made compatible. The following compatibility level values can be configured (not all versions supports all of the above listed compatibility level):
5050

5151
<a name="supported-dbcompats"></a>
@@ -54,8 +54,8 @@ Is the version of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] with
5454
|-------------|-----------------------------|-------------------------------------|------------------------------------------|
5555
|[!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)]|15|150|150, 140, 130, 120, 110, 100|
5656
|[!INCLUDE[ssSQL17](../../includes/sssql17-md.md)]|14|140|140, 130, 120, 110, 100|
57-
|[!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)]|12|150|150, 140, 130, 120, 110, 100|
58-
|[!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] Managed Instance|12|150|150, 140, 130, 120, 110, 100|
57+
|[!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)]|12|150|160, 150, 140, 130, 120, 110, 100|
58+
|[!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] Managed Instance|12|150|160, 150, 140, 130, 120, 110, 100|
5959
|[!INCLUDE[sssql16-md](../../includes/sssql16-md.md)]|13|130|130, 120, 110, 100|
6060
|[!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]|12|120|120, 110, 100|
6161
|[!INCLUDE[ssSQL11](../../includes/sssql11-md.md)]|11|110|110, 100, 90|
@@ -105,7 +105,7 @@ SELECT SERVERPROPERTY('ProductVersion');
105105
> [!NOTE]
106106
> Not all features that vary by compatibility level are supported on [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)].
107107
108-
To determine the current compatibility level, query the **compatibility_level** column of [sys.databases](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md).
108+
To determine the current compatibility level, query the `compatibility_level` column of [sys.databases](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md).
109109

110110
```sql
111111
SELECT name, compatibility_level FROM sys.databases;
@@ -467,4 +467,4 @@ For more information on database compatibility levels and related concepts, see
467467
- [Upgrading Databases by using the Query Tuning Assistant](../../relational-databases/performance/upgrade-dbcompat-using-qta.md)
468468
- [CREATE DATABASE](../../t-sql/statements/create-database-transact-sql.md)
469469
- [View or Change the Compatibility Level of a Database](../../relational-databases/databases/view-or-change-the-compatibility-level-of-a-database.md)
470-
- [Query Store hints](../../relational-databases/performance/query-store-hints.md)
470+
- [Query Store hints](../../relational-databases/performance/query-store-hints.md)

docs/t-sql/statements/create-materialized-view-as-select-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ CREATE MATERIALIZED VIEW [ schema_name. ] materialized_view_name
5858
<distribution_option> ::=
5959
{
6060
DISTRIBUTION = HASH ( distribution_column_name )
61-
| DISTRIBUTION = HASH ( [distribution_column_name [, ...n]] ) -- Preview
6261
| DISTRIBUTION = ROUND_ROBIN
6362
}
6463
@@ -78,8 +77,8 @@ CREATE MATERIALIZED VIEW [ schema_name. ] materialized_view_name
7877
#### *materialized_view_name*
7978
Is the name of the view. View names must follow the rules for identifiers. Specifying the view owner name is optional.
8079

81-
*distribution option*
82-
Only HASH and ROUND_ROBIN distributions are supported. For details and to understand how to choose the best distribution column, see the [Table distribution options](create-table-azure-sql-data-warehouse.md#TableDistributionOptions) section in CREATE TABLE.
80+
#### *distribution option*
81+
Only HASH and ROUND_ROBIN distributions are supported.
8382

8483
#### *select_statement*
8584
The SELECT list in the materialized view definition needs to meet at least one of these two criteria:

docs/t-sql/statements/create-table-as-select-azure-sql-data-warehouse.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ CREATE TABLE { database_name.schema_name.table_name | schema_name.table_name | t
4949
<distribution_option> ::=
5050
{
5151
DISTRIBUTION = HASH ( distribution_column_name )
52-
| DISTRIBUTION = HASH ( [distribution_column_name [, ...n]] ) -- Preview
5352
| DISTRIBUTION = ROUND_ROBIN
5453
| DISTRIBUTION = REPLICATE
5554
}
@@ -94,20 +93,6 @@ For details, see the [Arguments section](./create-table-azure-sql-data-warehouse
9493
`DISTRIBUTION` = `HASH` ( *distribution_column_name* ) | ROUND_ROBIN | REPLICATE
9594
The CTAS statement requires a distribution option and does not have default values. This is different from CREATE TABLE which has defaults.
9695

97-
`DISTRIBUTION = HASH ( [distribution_column_name [, ...n]] )` (Preview)
98-
Distributes the rows based on the hash values of up to 8 columns, allowing for more even distribution of the base table data, reducing the data skew over time and improving query performance. To enable this feature, set the database compatibility level to 9000 to join the preview. Check [ALTER DATABSE SCOPED CONFIGURATION](./alter-database-scoped-configuration-transact-sql.md) for details.
99-
100-
>[!NOTE]
101-
> - To enable this preview feature, join the preview by changing the database's compatibility level to 9000 with this command. Check [ALTER DATABSE SCOPED CONFIGURATION](./alter-database-scoped-configuration-transact-sql.md)) for details.<Br>
102-
>`ALTER DATABASE SCOPED CONFIGURATION SET DW_COMPATIBILITY_LEVEL = 9000;` <br><br>
103-
> - To opt-out the preview, run this command to change the database's compatibility level to 0.<br>
104-
>`ALTER DATABASE SCOPED CONFIGURATION SET DW_COMPATIBILITY_LEVEL = 0;` <br><br>
105-
>This will disable the multi-column distribution (MCD) feature (preview). Existing MCD tables will stay but become unreadable. Queries over MCD tables will
106-
>return this error: <br>
107-
>`Related table/view is not readable because it distributes data on multiple columns and multi-column distribution is not supported by this product version or this feature is disabled.`<br><br>
108-
> - To regain access to MCD tables, opt-in the preview again. <br><br>
109-
> - To load data into a MCD table, use CTAS statement and the data source needs be Synapse SQL tables.
110-
11196
For details and to understand how to choose the best distribution column, see the [Table distribution options](./create-table-azure-sql-data-warehouse.md#TableDistributionOptions) section in CREATE TABLE.
11297

11398
<a name="table-partition-options-bk"></a>
@@ -320,7 +305,7 @@ This simple example shows how to change the distribution method for a table. To
320305

321306
In most cases you won't need to change a hash-distributed table to a round-robin table. More often, you might need to change a round-robin table to a hash distributed table. For example, you might initially load a new table as round-robin and then later move it to a hash-distributed table to get better join performance.
322307

323-
This example uses the AdventureWorksDW sample database. To load the Azure Synapse Analytics version, see [Quickstart: Create and query a dedicated SQL pool (formerly SQL DW) in Azure synapse Analytics using the Azure portal](/azure/synapse-analytics/sql-data-warehouse/create-data-warehouse-portal).
308+
This example uses the AdventureWorksDW sample database. To load the Azure Synapse Analytics version, see [Quickstart: Create and query a dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics using the Azure portal](/azure/synapse-analytics/sql-data-warehouse/create-data-warehouse-portal).
324309

325310

326311
```sql

0 commit comments

Comments
 (0)