Skip to content

Commit f471bb8

Browse files
Merge pull request #282169 from linda33wj/synapse-link
Update Synapse link docs
2 parents 8a4b53b + 5029ec5 commit f471bb8

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

articles/synapse-analytics/synapse-link/connect-synapse-link-sql-database.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: whhender
55
ms.service: synapse-analytics
66
ms.topic: how-to
77
ms.subservice: synapse-link
8-
ms.date: 11/16/2022
8+
ms.date: 07/30/2024
99
ms.author: whhender
1010
ms.reviewer: whhender, wiassaf
1111
---
@@ -120,6 +120,23 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
120120
121121
:::image type="content" source="../media/connect-synapse-link-sql-database/studio-edit-link.png" alt-text="Screenshot that shows where to edit the Azure Synapse Link connection from Synapse Studio.":::
122122

123+
1. In the **Action on existing target table** dropdown list, choose the option most appropriate for your scenario if the table already exists in the destination.
124+
125+
- **Drop and recreate table**: The existing target table will be dropped and recreated.
126+
- **Fail on non-empty table**: If target table contains data, link connection for the given table will fail.
127+
- **Merge with existing data**: Data will be merged into the existing table.
128+
129+
> [!NOTE]
130+
> If you want to merge multiple sources into the same destination by choosing "Merge with existing data", make sure the sources contain different data to avoid conflict and unexpected result.
131+
132+
1. Specify whether to **enable transaction consistency across tables**.
133+
134+
- When this option is enabled, a transaction spanning across multiple tables on the source database is always replicated to the destination database in a single transaction. This, however, will create overhead on the overall replication throughput.
135+
- When the option is disabled, each table will replicate changes in its own transaction boundary to the destination in parallel connections, thus improving overall replication throughput.
136+
137+
> [!NOTE]
138+
> When you want to enable transaction consistency across tables, please also make sure the transaction isolation levels in your Synapse dedicated SQL pool is READ COMMITTED SNAPSHOT ISOLATION.
139+
123140
1. Select **Publish all** to save the new link connection to the service.
124141

125142
## Start the Azure Synapse Link connection
@@ -186,7 +203,8 @@ To stop the Azure Synapse Link connection in Synapse Studio, do the following:
186203
:::image type="content" source="../media/connect-synapse-link-sql-server-2022/stop-link-connection.png" alt-text="Screenshot of the pane for stopping a link connection.":::
187204

188205
> [!NOTE]
189-
> If you restart a link connection after stopping it, it will start from a full initial load from your source database, and incremental change feeds will follow.
206+
> * If you restart a link connection after stopping it, it will start from a full initial load from your source database, and incremental change feeds will follow.
207+
> * If you choose "**Merge with existing data**" as the action on existing target table, when you stop the link connection and restart it, the record deletions in source during that period won't be deleted in the destination. In such case, to ensure data consistency, consider to use pause/resume instead of stop/start, or to clean up the destination tables before you restart the link connection.
190208
191209
## Next steps
192210

articles/synapse-analytics/synapse-link/connect-synapse-link-sql-server-2022.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: synapse-analytics
66
ms.topic: how-to
77
ms.subservice: synapse-link
88
ms.custom: engagement-fy23
9-
ms.date: 11/16/2022
9+
ms.date: 07/30/2024
1010
ms.author: whhender
1111
ms.reviewer: whhender, wiassaf
1212
---
@@ -195,6 +195,23 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
195195
> * Consider using *heap table* for the structure type when your data contains varchar(max), nvarchar(max), and varbinary(max).
196196
> * Make sure that the schema in your Azure Synapse SQL dedicated pool has already been created before you start the link connection. Azure Synapse Link for SQL will create tables automatically under your schema in the Azure Synapse SQL pool.
197197
198+
1. In the **Action on existing target table** dropdown list, choose the option most appropriate for your scenario if the table already exists in the destination.
199+
200+
- **Drop and recreate table**: The existing target table will be dropped and recreated.
201+
- **Fail on non-empty table**: If target table contains data, link connection for the given table will fail.
202+
- **Merge with existing data**: Data will be merged into the existing table.
203+
204+
> [!NOTE]
205+
> If you want to merge multiple sources into the same destination by choosing "Merge with existing data", make sure the sources contain different data to avoid conflict and unexpected result.
206+
207+
1. Specify whether to **enable transaction consistency across tables**.
208+
209+
- When this option is enabled, a transaction spanning across multiple tables on the source database is always replicated to the destination database in a single transaction. This, however, will create overhead on the overall replication throughput.
210+
- When the option is disabled, each table will replicate changes in its own transaction boundary to the destination in parallel connections, thus improving overall replication throughput.
211+
212+
> [!NOTE]
213+
> When you want to enable transaction consistency across tables, please also make sure the transaction isolation levels in your Synapse dedicated SQL pool is READ COMMITTED SNAPSHOT ISOLATION.
214+
198215
1. Select **Publish all** to save the new link connection to the service.
199216

200217
## Start the Azure Synapse Link connection
@@ -261,7 +278,8 @@ To stop the Azure Synapse Link connection in Synapse Studio, do the following:
261278
:::image type="content" source="../media/connect-synapse-link-sql-server-2022/stop-link-connection.png" alt-text="Screenshot of the pane for stopping a link connection.":::
262279

263280
> [!NOTE]
264-
> If you restart a link connection after stopping it, it will start from a full initial load from your source database and incremental change feeds will follow.
281+
> * If you restart a link connection after stopping it, it will start from a full initial load from your source database, and incremental change feeds will follow.
282+
> * If you choose "**Merge with existing data**" as the action on existing target table, when you stop the link connection and restart it, the record deletions in source during that period won't be deleted in the destination. In such case, to ensure data consistency, consider to use pause/resume instead of stop/start, or to clean up the destination tables before you restart the link connection.
265283
266284
## Rotate the shared access signature token for the landing zone
267285

0 commit comments

Comments
 (0)