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
title: Troubleshooting guide for Azure Synapse Link initial snapshot issues for Azure SQL Database and SQL Server
2
+
title: Troubleshooting Guide for Azure Synapse Link Initial Snapshot Issues for Azure SQL Database and SQL Server
3
3
description: Learn how to troubleshoot Azure Synapse Link initial snapshot issues for Azure SQL Database and SQL Server
4
4
author: WilliamDAssafMSFT
5
5
ms.author: wiassaf
6
6
ms.reviewer: imotiwala, prpasunu
7
+
ms.date: 12/02/2024
7
8
ms.service: azure-synapse-analytics
8
-
ms.topic: how-to
9
9
ms.subservice: synapse-link
10
-
ms.date: 05/03/2023
10
+
ms.topic: how-to
11
11
---
12
12
13
-
# Troubleshoot: Azure Synapse Link for SQL initial snapshot issues
13
+
# Troubleshoot: Azure Synapse Link for SQL initial snapshot issues
14
14
15
15
This article is a guide to troubleshooting issues with initial snapshot on Azure Synapse Link for Azure SQL Database and SQL Server.
16
16
17
+
Start by reviewing your configuration. For more information, see [Configure your source Azure SQL database](../connect-synapse-link-sql-database.md#configure-your-source-azure-sql-database).
18
+
17
19
## Symptom
18
20
19
-
The users can follow the below resolution steps to investigate the below cases:
21
+
The users can follow these resolution steps to investigate:
20
22
21
23
- Determine if a link connection snapshot state is stuck.
22
24
- Determine if snapshot related errors are observed after starting the link connection.
23
25
- Understand the progress of the initial snapshot for individual tables.
24
26
25
27
## Resolution
26
28
27
-
### Step 1: Query to get the current snapshot state for the tables included in the link connection
29
+
### Step 1: Query to get the current snapshot state for the tables included in the link connection
28
30
29
31
Connect to the source database enabled for Azure Synapse Link using [SQL Server Management Studio](https://aka.ms/ssms) or [Azure Data Studio](https://aka.ms/azuredatastudio).
30
32
@@ -39,17 +41,17 @@ FROM changefeed.change_feed_tables;
39
41
40
42
Example output:
41
43
42
-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png" alt-text="A screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png":::
44
+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png" alt-text="Screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png":::
43
45
44
46
- If the `snapshot_phase` column value for the desired table is 6 (`EMIT_SNAPSHOT_ENDENTRY`), it means snapshot has already completed on the table and needs no further investigation.
45
-
-There is a possibility that one of the phases of the snapshot may take longer to complete. Phase 5 (`EXPORT_DATA_FILE`) can be a time-consuming step. When the table size is large, the `EXPORT_DATA_FILE` phase is expected to take longer to finish. For more information on the snapshot phases, refer to[changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql).
47
+
-Steps of the snapshot can take longer to complete than others. Phase 5 (`EXPORT_DATA_FILE`) can be a time-consuming step. When the table size is large, the `EXPORT_DATA_FILE` phase is expected to take longer to finish. For more information on the snapshot phases, see[changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql).
46
48
47
49
When a snapshot has not completed for a given table, there are two possible cases to consider based on the output of [changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql):
48
50
49
51
- When `Snapshot_phase` < 6 and `snapshot_retry_count` = 0, the snapshot operation is ongoing, without error. No action is needed in this case, wait for snapshot completion.
50
52
- When `Snapshot_phase` < 6 and `snapshot_retry_count` > 0, the snapshot operation has been failing and is being retried. Proceed to [Step 2](#step-2-snapshot-retry). For example, as in the following image:
51
53
52
-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png" alt-text="A screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table, indicating retries." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png":::
54
+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png" alt-text="Screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table, indicating retries." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png":::
53
55
54
56
### Step 2: Snapshot retry
55
57
@@ -61,22 +63,22 @@ SELECT * FROM sys.dm_change_feed_errors;
61
63
62
64
For example:
63
65
64
-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png" alt-text="A screenshot of the results of the sys.dm_change_feed_errors dynamic management view including possible snapshot errors to investigate." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png":::
66
+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png" alt-text="Screenshot of the results of the sys.dm_change_feed_errors dynamic management view including possible snapshot errors to investigate." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png":::
65
67
66
68
1. If any errors are observed from the snapshot component when `source_task` = 5, refer to error specific mitigation details in the [Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md).
67
69
1. If the error is not found in the known limitations article, [submit an Azure support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) following the below instructions:
68
-
1.For **Issue type**, select **Technical**.
69
-
2. Provide the desired subscription of the source database. Select **Next**.
70
-
3. For **Service type**, select **SQL Database**.
71
-
4. For **Resource**, select the source database where the initial snapshot is failing.
72
-
5. For **Summary**, provide the error numbers from `changefeed.change_feed_errors`.
73
-
6. For **Problem type**, select **Data Sync, Replication, CDC and Change Tracking**.
74
-
7. For **Problem subtype**, select **Transactional Replication**.
70
+
1. For **Issue type**, select **Technical**.
71
+
1. Provide the desired subscription of the source database. Select **Next**.
72
+
1. For **Service type**, select **SQL Database**.
73
+
1. For **Resource**, select the source database where the initial snapshot is failing.
74
+
1. For **Summary**, provide the error numbers from `changefeed.change_feed_errors`.
75
+
1. For **Problem type**, select **Data Sync, Replication, CDC and Change Tracking**.
76
+
1. For **Problem subtype**, select **Transactional Replication**.
75
77
76
-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/sql-snapshot-issues-support-request.png" alt-text="A screenshot of the Azure portal where a New support request has been prepared.":::
78
+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/sql-snapshot-issues-support-request.png" alt-text="Screenshot of the Azure portal where a New support request has been prepared.":::
77
79
78
-
## Next steps
80
+
## Related content
79
81
80
-
-[Get started with Azure Synapse Link for Azure SQL Database](../connect-synapse-link-sql-database.md)
81
-
-[Get started with Azure Synapse Link for SQL Server 2022](../connect-synapse-link-sql-server-2022.md)
82
-
-[Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md)
82
+
-[Get started with Azure Synapse Link for Azure SQL Database](../connect-synapse-link-sql-database.md)
83
+
-[Get started with Azure Synapse Link for SQL Server 2022](../connect-synapse-link-sql-server-2022.md)
84
+
-[Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md)
0 commit comments