Skip to content

Commit 5029ec5

Browse files
committed
Add notes for target table actions & transaction option
1 parent a4c2e54 commit 5029ec5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

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)