azure云数据库_如何使用SQL Data Sync同步Azure SQL数据库和本地数据库

本文详细介绍了如何使用SQL Data Sync在Azure SQL数据库和本地SQL Server数据库之间进行数据同步。从设置Azure门户中的同步组,到安装和配置SQL Azure数据同步代理,再到选择同步频率、冲突解决策略以及同步数据库和表,文章提供了一步一步的操作指南。此外,还强调了防火墙设置和连接测试的重要性,确保数据同步的顺利进行。
摘要由CSDN通过智能技术生成

azure云数据库

SQL Data Sync allows you to synchronize data across multiple Azure SQL databases and on-premises SQL Server databases.

SQL Data Sync允许您跨多个Azure SQL数据库和本地SQL Server数据库同步数据。

In this article, how to synchronize Azure SQL database with on-premises SQL Server database will be shown.

在本文中,将显示如何将Azure SQL数据库与本地SQL Server数据库同步。

More about SQL Data Sync can be found on the What is SQL Data Sync page.

有关“ SQL数据同步”的更多信息,请参见“ 什么是SQL数据同步”页面。

Set up synchronization

设置同步

In the browser, navigate to Azure portal, and locate the SQL databases tab:

在浏览器中,导航到Azure门户 ,然后找到“ SQL数据库”选项卡:

On the SQL databases page, select the hub database for Data Sync; in this case, the AdventureWorks database will be used. Once the database is selected on the right side under the SETTINGS list, find the Sync to other databases command:

在“ SQL数据库”页面上,选择 用于数据同步的中心数据库; 在这种情况下,将使用AdventureWorks数据库。 在“ 设置”列表下右侧选择数据库后,找到“ 同步到其他数据库”命令:

Click on the Sync to other databases command and the Data Sync page will open in which the configuration of data synchronization will be started:

单击“ 同步到其他数据库”命令,将打开“ 数据同步”页面,其中将开始配置数据同步:

As it can be seen on this page, currently there is no any sync group and any sync agent. The sync agent needs to be installed on-premises database server. More about sync agent will be discussed later in this article.

如在此页面上可以看到的,当前没有任何同步组和任何同步代理。 同步代理需要安装在本地数据库服务器上。 有关同步代理的更多信息将在本文后面讨论。

To start configuration, click the New Sync Group button and the New sync group page opens:

要开始配置,请单击“ 新建同步组” 按钮,然后打开新同步组页面:

In the Sync Group Name box, enter the name for the new sync group (e.g. SyncAzureDatabaseToOnPremisesDatabase).

在“ 同步组名称”框中,输入新同步组的名称(例如SyncAzureDatabaseToOnPremisesDatabase )。

Under the Sync Metadata Database group, choose the New database or Using existing database radio button.

在“ 同步元数据数据库”组下,选择“ 新建数据库”或“ 使用现有数据库”单选按钮。

For this example, the New database radio button will be used to create a new database in which will be placed sync metadata and logs.

在此示例中,将使用“ 新建数据库”单选按钮创建一个新数据库,在该数据库中放置同步元数据和日志。

Select (click) Create new database, the SQL Database tab will open:

选择(单击)“ 创建新数据库” ,“ SQL数据库”选项卡将打开:

In the Name box, enter a new name (Sync Database) for the sync metadata database, configure the other options on this page and press the OK button.

在“ 名称”框中,为同步元数据数据库输入一个新名称(“ 同步数据库” ),在此页面上配置其他选项,然后按“ 确定”按钮。

Under the Automatic Sync section, choose whether the data synchronization should be automatic – by pressing the On button or manually – by pressing the Off button.

在“ 自动同步”部分下,选择数据同步是自动的(通过按“ 打开”按钮还是手动的)通过按“ 关闭”按钮。

If the On button is pressed, the Sync Frequency section will appear. Here can be set how frequent the data synchronization will occur:

如果按按钮,将出现“

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值