重新同步问题,而不是更新客户端(sdf)文件 [英] Re-Sync Issue, Not Updating the client (sdf) file

查看:119
本文介绍了重新同步问题,而不是更新客户端(sdf)文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要一些帮助,请...我一直在看这个问题,但我找不到来源。 这是场景。


当我第一次使用VS2008将我的应用程序部署到我的移动设备并进行同步时,它可以正常工作。 我的两个表(表1和表2)随着最新的更新(更新/插入/删除)而更新。  这时我的.sdf文件和我的sql server 2005是同步的。 但是在一分钟后,我在服务器上为表1更改了一条记录,并尝试再次进行同步,这次它说我已经下载了1次更新,但我看不到该记录的更改。似乎没有更新该记录。 但是,如果我在表2上执行此操作并重新同步,则两种方式都可以正常使用!!


我使用了两个表的双向,我有LastEditDate和CreationDate,我也指定了,如果是clientupdateserverupdate,则为clientwins。 在我的localdatabasecache中,我选择了,UseExistingTableOrFail。


现在,另一个问题出现了,如果我更新客户端中的记录并重新同步,它会覆盖我所做的更改服务器。


BTW,我正在使用SQL Compact 3.5和SQL Server 2005以及windows mobile 6.1 professional。


如果您需要更多信息,请告诉我。 ..


提前谢谢。

解决方案

你看过这个吗? http://blogs.msdn.com/sync/archive/2008/06/16/extending-visual-studio-2008-sp1-sync-designer-to-support-bi-directional-synchronization.aspx

Hi,

I need some help, pls... I been looking at this problem but i could not find the source.  Here's the scenario.

When I first deploy my application to my mobile device using VS2008 and do the synchronization, it works okay.  My two tables(table 1 and 2) gets updated with the lastest changed(updated/inserted/deleted).   At this time my .sdf file and my sql server 2005 is in-sync.  But after a minute, I changed one record on server for table 1 and try to synchronize again, this time it said that i have downloaded 1 update, but I could not see the changes for that record. It seems that is not updating that record.  But If I do that on table 2 and re-sync, it works okay on both ways!!

I used bidirection for both tables, i have LastEditDate and CreationDate and I also specify, clientwins if clientupdateserverupdate.  In my localdatabasecache, i selected, UseExistingTableOrFail.

Now, another problem comes up, if I update the record in the client and do a re-sync, it overwrite the changed i did on server.

BTW, im using SQL Compact 3.5 and SQL Server 2005 and windows mobile 6.1 professional.

Let me know if you need more info..

Thank you in advance.

解决方案

have you looked at this? http://blogs.msdn.com/sync/archive/2008/06/16/extending-visual-studio-2008-sp1-sync-designer-to-support-bi-directional-synchronization.aspx


这篇关于重新同步问题,而不是更新客户端(sdf)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆