简体   繁体   中英

Sync SQL Server onPrem Availability Group to Azure SQL Database

We have an ERP solution running on an on-premise SQL Server Availability Group. The new data warehouse has been set up on Azure based on Azure SQL database. We now need a way to update the DWH based on ERP deltas into the cloud.

The challenge:

  • we don't want another VM with SQL Server in the cloud for replication
  • we have to have delta's because transaction tables and backups are too big to ship to azure daily
  • AG primary might failover to another secondary which then would need to know about the last sync

Any ideas on how to approach that and possible architectures/scenarios/tools?

If your Hub database is Azure SQL database, you can use Azure SQL Data Sync .

Azure SQL Data Sync is a service built on Azure SQL Database that lets you synchronize the data you select bi-directionally across multiple SQL databases and SQL Server instances.

You can sync the data from on-premise SQL Server to Azure SQL database with Data Sync.

But Data Sync doesn't support Azure SQL Data Warehouse .

Another way maybe you can think about Azure Data Factory .

Using Data factory to sync the data from on-premise SQL server to Azure Data Warehouse. You can trigger and Schedule the pipeline execution daily or weekly, or other time.

You can reference these tutorials:

  1. Copy data to and from SQL Server by using Azure Data Factory
  2. Copy and transform data in Azure SQL Data Warehouse by using Azure Data Factory
  3. Syncing on-premise databases to Microsoft Azure Cloud using Azure Data Factory

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM