如何管理窗口应用程序的离线(许多客户端)在线(SQL db)数据库? [英] How to manage offline(many client)online(SQL db) database for window application?

查看:53
本文介绍了如何管理窗口应用程序的离线(许多客户端)在线(SQL db)数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows应用程序(pos-Point of sale),可以安装在本地机器上,用户可以离线工作并创建POS。

现在我们还为管理员创建了可以查看的web应用程序客户端应用程序创建的所有数据。



i需要将所有客户端数据库与一个中心数据库同步,并且cental数据库也在每个本地应用程序数据库中同步用户在线时






帮助我任何人请



我尝试了什么:



i试过微软同步.........但不成功。

i have windows application(pos-Point of sale) which can be installed on local machine where users can work offline and create POS.
now we have also created web application for admin which can view all the data that created by client applicatin.

i need to sync all the client database with one cental database ,and cental database also sync in every local application dataabse
when user online.


help me anyone please

What I have tried:

i tried Microsoft Synchronization.........but not successful.

推荐答案

您必须定义同步算法,每当用户在本地进行任何更改时,将其与同步标志0一起存储,并且每当用户获得在线连接时,将所有数据与标志0和用1更新那些同步标志。
You have to define a sync algorithm, Whenever user makes any changes in local, store it with sync flag 0 and whenever user gets online connection ,sync all data with flag 0 and update those sync flag with 1.


这篇关于如何管理窗口应用程序的离线(许多客户端)在线(SQL db)数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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