如何显示同步远程数据库后的最新值?
问题描述:
有多个远程(非本地&不是同一个域)分贝的(SSCE),其中每个用户可以如何显示同步远程数据库后的最新值?
* look at the current row with the latest updates
* look at the history of changes made to a row
* look at the username who made the change
* look at the time the change was made
的问题是有没有办法同步上这两款机器的窗口时间!我相信这是一个非常普通的问题,但没有什么是已经出现在我的搜索
任何帮助表示赞赏
P/S的机器都在网上偶尔所以不能依赖于服务器来获得服务器时间
答
这里对于那些谁可以访问这里寻找答案
上的recv的结束发件人
* use a sntp client to get the network time at the time of sync start
* send this n/w time along with the local time with the changes
* at the time of sync recv, get the n/w time using sntp
* using the above time and the timestamps recvd, map the source timestamps to the local timestamp to figure out the latest changes
希望这是有帮助的人
的解决方案
答
服务器呢?为什么不根据服务器时间做保存而不是计算机时间。这样的时间将是一样的。
目前没有服务器,可以引入一个服务器,但即使如此,它们偶尔会连接/连接不保证可用 – Kumar 2011-12-14 19:18:19