Skip to content

Commit a4c2e54

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

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-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

0 commit comments

Comments
 (0)