You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/synapse-analytics/synapse-link/connect-synapse-link-sql-database.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: whhender
5
5
ms.service: synapse-analytics
6
6
ms.topic: how-to
7
7
ms.subservice: synapse-link
8
-
ms.date: 11/16/2022
8
+
ms.date: 07/30/2024
9
9
ms.author: whhender
10
10
ms.reviewer: whhender, wiassaf
11
11
---
@@ -120,6 +120,23 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
120
120
121
121
:::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.":::
122
122
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
+
123
140
1. Select **Publish all** to save the new link connection to the service.
124
141
125
142
## Start the Azure Synapse Link connection
@@ -186,7 +203,8 @@ To stop the Azure Synapse Link connection in Synapse Studio, do the following:
186
203
:::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.":::
187
204
188
205
> [!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.
Copy file name to clipboardExpand all lines: articles/synapse-analytics/synapse-link/connect-synapse-link-sql-server-2022.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: synapse-analytics
6
6
ms.topic: how-to
7
7
ms.subservice: synapse-link
8
8
ms.custom: engagement-fy23
9
-
ms.date: 11/16/2022
9
+
ms.date: 07/30/2024
10
10
ms.author: whhender
11
11
ms.reviewer: whhender, wiassaf
12
12
---
@@ -195,6 +195,23 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
195
195
> * Consider using *heap table* for the structure type when your data contains varchar(max), nvarchar(max), and varbinary(max).
196
196
> * 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.
197
197
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
+
198
215
1. Select **Publish all** to save the new link connection to the service.
199
216
200
217
## Start the Azure Synapse Link connection
@@ -261,7 +278,8 @@ To stop the Azure Synapse Link connection in Synapse Studio, do the following:
261
278
:::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.":::
262
279
263
280
> [!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.
265
283
266
284
## Rotate the shared access signature token for the landing zone
0 commit comments