
The changes are recorded in a side table in the user database.
Tracking data changes: Data Sync tracks changes using insert, update, and delete triggers. However, SQL Data Sync can be used after the migration is completed, to ensure that the source and target are kept in sync. Migration from SQL Server to Azure SQL Database. Use read-only replicas to load balance read-only query workloadsĪzure Data Factory or SQL Server Integration Services With Data Sync, you can easily keep databases in regions around the world synchronized.ĭata Sync isn't the preferred solution for the following scenarios: Scenario To minimize network latency, it's best to have your data in a region close to you. Globally Distributed Applications: Many businesses span several regions and even several countries/regions. You can use Data Sync to keep these two databases synchronized. This approach minimizes the performance impact on your production workload. For example, if you have a large production database, but you also need to run a reporting or analytics workload on this data, it's helpful to have a second database for this additional workload. Distributed Applications: In many cases, it's beneficial to separate different workloads across different databases. This capability may appeal to customers who are considering moving to the cloud and would like to put some of their application in Azure. Hybrid Data Synchronization: With Data Sync, you can keep data synchronized between your databases in SQL Server and Azure SQL Database to enable hybrid applications.
Here are the main use cases for Data Sync: The Conflict Resolution Policy is a group level policy, which can be Hub wins or Member wins.ĭata Sync is useful in cases where data needs to be kept updated across several databases in Azure SQL Database or SQL Server.The Sync Interval describes how often synchronization occurs.That is, the Sync Direction can be Hub to Member, or Member to Hub, or both. The Sync Direction can be bi-directional or can flow in only one direction.The Sync Schema describes which data is being synchronized.
DSYNC SETUP MAPPING INSTALL
If you're using an on premises database as a member database, you have to install and configure a local sync agent.Ī sync group has the following properties: Data Sync creates tables in this database and runs a frequent workload.
Microsoft recommends to create a new, empty database for use as the Sync Metadata Database. Sync Metadata Database cannot be deleted or renamed while sync groups or sync agents exist. You can only have one Sync Metadata Database per region and subscription. The Sync Metadata Database is customer created and customer owned. The Sync Metadata Database has to be an Azure SQL Database located in the same region as the Hub Database.
The Sync Metadata Database contains the metadata and log for Data Sync.
The member databases can be either databases in Azure SQL Database or in instances of SQL Server. The Hub Database must be an Azure SQL Database. Sync occurs only between the hub and individual members. The rest of the databases are member databases. You define one of the databases in the sync group as the hub database. A sync group is a group of databases that you want to synchronize.ĭata Sync uses a hub and spoke topology to synchronize data. Overviewĭata Sync is based around the concept of a sync group. Azure SQL Data Sync does not support Azure SQL Managed Instance at this time.