Microsoft同步框架可将数据从移动扫描仪数据库同步到远程数据库

问题描述:

我需要从移动扫描仪扫描库存并将数据上传到远程数据库

I have a requirement to scan the inventory from a mobile scanner and upload the data to remote database

我已经在Microsoft Visual Studio 2008中为Windows Mobile 6专业设备创建了一个设备应用程序.

 I have created a device application in Microsoft Visual studio 2008 .. for Windows mobile 6 professional device..

 我使用了Microsoft链接中的以下参考资料来创建应用程序

 I used the below reference from Microsoft link to create an application

  https://msdn.microsoft.com/en-us/library/dd938879 .aspx#UnderstandingSQLServer2008ChangeTrackingConfiguration

使用本地数据库缓存配置客户端和服务器数据库..但是当我尝试检查-使用sql服务器更改跟踪时,出现以下错误.

 Used Local database cache to configure the client and server database.. but when I try to check - use sql server change tracking I am getting the below error..

 "  数据库同步失败,并显示以下消息:     无法初始化客户端数据库,因为DbServerSyncPrvider的GetSchema()方法无法检索表的架构.确保可以建立与客户端数据库的连接,并确保SelectIncrementalInsertsCommand 属性或正确指定SyncAdapter的SelectIncrementalUpdatesCommand属性"

 "  Synchronizing the database failed with the message:     Unable to Initialize the client database, because the schema for table could not be retrieved by the GetSchema() method of DbServerSyncPrvider. Make sure that you can establish connection to the client database and that either the SelectIncrementalInsertsCommand propery or the SelectIncrementalUpdatesCommand propery of the SyncAdapter is specified correctly"

您能指导我如何解决此问题吗?也可以指导我还有什么其他方法可以将Windows Mobile 6 Professional设备中的数据同步到Sql Server 2008数据库中

Can you guide me how to resolve this.. also guide me  there any other way to sync the data from windows mobile 6 professional device to Sql Server 2008 database

 

您好ramkanuganti:

Hi ramkanuganti:

感谢在那里发布.

由于Visual C#论坛讨论并提出有关C#编程语言,IDE,库,示例和工具的问题,所以我不是Sync框架专家.

Since The Visual C# forum discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools , I am not an expert in Sync framework .

但是,根据我的搜索,我还发现了一些可能对您有用的信息.

However ,based on my search , I also find some information that may be useful to you .

由于您的错误消息和Sql Server 2008版本,我发现了两个类似的情况:

Due to your error message and your Sql Server 2008 version , I found two similar case :

http://*.com/questions /11023700/sync-framework-between-sql-server-2008-and-sql-server-ce

为了获得更好的支持,您可以在同步框架中发布新线程:

For better support , you can post a new thread in sync framework :

  https://social.microsoft.com/Forums/en-US/home ?category = sync  

 https://social.microsoft.com/Forums/en-US/home?category=sync 

如果您对C#语法还有其他疑问,请随时告诉我.

If you have anything else about C# grammar ,please feel free to let me know .

如果您的问题已解决,请记住关闭该线程并将其标记为答案.

If your issue has been solved , please remember to close the thread and mark it as answer .

最好的问候

朱凯文