简体   繁体   English

vb.net中Windows应用程序的同步数据库

[英]synchronization database for windows application in vb.net

i have a windows application made in VB.NET which maintains a database, and i have similar application running across many disconnected machines, all of them have similar databases. 我有一个用VB.NET制作的Windows应用程序,该应用程序维护数据库,并且我在许多断开连接的计算机上运行类似的应用程序,所有这些计算机都具有类似的数据库。 Now we have a requirement that all the data from these machines must be uploaded on a central database server MSSQL on a daily basis, we can have an internet connection on each machine for them to upload the data but i wanted to know if any framework exists which can assist in the synchronization of the local data with the online data? 现在我们有一个要求,每天必须将这些计算机上的所有数据上传到中央数据库服务器MSSQL上,我们可以在每台计算机上建立互联网连接,以便它们上传数据,但是我想知道是否存在任何框架哪些可以帮助本地数据与在线数据同步? i saw Microsoft's Sync Framework so i have the following questions. 我看到了Microsoft的Sync Framework,所以我有以下问题。

  • Is that the only option avaialble 那是唯一可用的选项
  • How windows applications used to synchronize data before SQL Server 2008 Windows应用程序如何用于在SQL Server 2008之前同步数据
  • Is there any option for SQL Server 2005. SQL Server 2005是否有任何选项。

There are basically 2 choices: 基本上有2个选择:

  1. As you said, Sync Framework 如您所说,Sync Framework
  2. Merge Replication 合并复制

They all work pretty much on SQL2000, 2005 and 2008, as well as Compact edition. 它们在SQL2000、2005和2008以及精简版上都可以正常工作。

I have not used the new released (2.0) of the Sync Framework, but I believe they have made a few improvements to make it easier to set up. 我没有使用新发布的Sync Framework(2.0),但我相信他们已经做了一些改进以使设置更加容易。 Else, it works quite well, with a few little issues (perhaps only on the CE side for me). 否则,它工作得很好,有一些小问题(也许对我而言仅在CE方面)。

My experience with merge replication has proved to be quite troublesome, and it is difficult to set up, but from a performance (including memory consumption) point of view looks much better. 我在合并复制方面的经验证明非常麻烦,并且很难设置,但是从性能(包括内存消耗)的角度来看要好得多。 If you have a capable SQL person around, I would attempt this first. 如果您有一个能干的SQL专家,我将首先尝试这种方法。

Both these solutions will do incremental synchronization so the overhead is not so much. 这两种解决方案都将执行增量同步,因此开销不会太大。

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

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