简体   繁体   English

Azure Sync不反映本地数据库中的更改

[英]Azure Sync not reflecting changes in on-premises database

I have installed sync agent client on my local machine, and configured the sync between the azure SQL db and on-premises database. 我已经在本地计算机上安装了同步代理客户端,并配置了Azure SQL db和本地数据库之间的同步

In the Azure portal, I have set the sync timing to 5 minutes. 在Azure门户中,我已将同步时间设置为5分钟。 and as of now, I am just syncing between one table. 截至目前,我只是在一张桌子之间进行同步。

In the sync logs, The details are : Sync completed successfully in x.xx seconds. 在同步日志中,详细信息如下: 同步在x.xx秒内成功完成。

In the conflict resolution, I have set it to Member win. 在解决冲突中,我将其设置为“赢得会员”。 I tried with Hub win also and it is Bi-Directional sync. 我也尝试过Hub win,它是双向同步。

Whenever i insert something in the table in Azure Db, after the sync, those changes are not reflected in the on-premises db. 每当我在Azure Db的表中插入某些内容时,同步后,这些更改就不会反映在本地数据库中。

Also, is there any way to check detailed logs of the Azure sync group? 此外,有什么方法可以检查Azure同步组的详细日志吗?

Please check and make sure that you've selected the columns/tables that you're inserting too for syncing. 请检查并确保您也选择了要插入的列/表以进行同步。

Did you make any schema changes? 您是否进行了架构更改? These must be resolved manually. 这些必须手动解决。

Also please check to confirm that your local agent is online. 另外,请检查以确认您的本地代理商在线。 Best, Josh 最好,乔希

Try this code on the Azure database (Hub) and see if it works: 在Azure数据库(Hub)上尝试以下代码,并查看其是否有效:

ALTER DATABASE [database name]
SET ALLOW_SNAPSHOT_ISOLATION ON

How many sync groups associating with the specific table? 多少同步组与特定表相关联?

Typically this issue is encountered while associating another sync group with the same table. 通常,在将另一个同步组与同一表关联时会遇到此问题。 If you use bi-directional sync, try to prevent other sync groups associate with the bi-directional table. 如果您使用双向同步,请尝试防止其他同步组与双向表关联。 If you did any changes or deleted records or tables from the DataSync.table_dss_tracking table, please delete the sync group and re-create it. 如果您对DataSync.table_dss_tracking表进行了任何更改或删除了记录或表,请删除同步组并重新创建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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