Share via

Azure SQL Data Sync No Response

Alan Chan Admin 25 Reputation points
2023-04-13T09:26:54.9233333+00:00

Hi, I started to run Azure SQL Data Sync No Response from Azure SQL Database to another SQL Database in the same Azure SQL Server, however, it found that the Sync State no response for more than 2 days, there is no any new data insert or process, the Status still show Processing, what should I do? Thanks Alan

Azure SQL Database
0 comments No comments

Answer accepted by question author

GeethaThatipatri-MSFT 29,597 Reputation points Microsoft Employee Moderator
2023-04-13T15:23:36.2733333+00:00

@Alan Chan Admin 100 million records is a lot of records for an Initial Sync. Since there is data on the source database, as well as the target database, Data Sync will undergo a row-by-row conflict resolution process which is very slow. What I suggest is  

  1. Remove the tables/large tables from the Sync Schema.
  2. Truncate the tables/large tables on the target database.
  3. Add the tables/target tables to the Sync Schema.
  4. Sync.   By doing the above steps, you will be asking Data Sync to BULK INSERT the 100 million records from the source database tables/large table to the target database tables/large table, directly. Since there would be zero rows in the tables/large table on the target database, there would not conflicts, and BULK INSERT will happen. Please let me know if you still have any issues.

Regards

Geetha

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Alberto Morillo 35,506 Reputation points MVP Volunteer Moderator
    2023-04-13T10:26:46.8066667+00:00

    During the initial sync is better to scale up the service tier of the databases to the most you can.

    If you can consider configuring the sync from scratch (here you will find a tutorial), I suggest you start the sync with an empty database on the member database to make the process finish faster. You can disable the account you use for the sync process to stop the initial sync, if you are not able to stop it.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.