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数据同步”页面。
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:
如果按开按钮,将出现“