ADO.NET 同步框架 - 确定哪些记录从 PDA 同步到服务器成功/失败

发布于 2024-07-26 10:11:00 字数 301 浏览 11 评论 0原文

我在客户端使用 ADO.NET 同步框架(运行 Windows Mobile 5 和 .net cf 3.5 和 SQL CE 3.5 的 PDA)。 服务器端使用 SQL Server 2005。

在服务器端编写了手动查询以确定为每个客户端选择哪些记录进行插入/更新/删除以及任何冲突的记录。

但在 PDA 上,我似乎找不到一种方法来准确确定哪些记录同步成功,哪些记录同步失败。 我可以获得 SyncStatistics,但这只是给出总数,我需要实际的行 ID,以便我可以从 PDA 中删除成功同步的记录。

有任何想法吗?

I am using ADO.NET Sync Framework and on the client side (PDA running Windows Mobile 5 and .net cf 3.5 and SQL CE 3.5). Server side is using SQL Server 2005.

On server side manual queries have been written to determine which records are selected for insert/update/delete for each client as well as any conflicting records.

On PDA though, I can't seem to find a way to determine exactly which records were synced successfully and which failed. I can obtain the SyncStatistics but this just gives totals and I need actual row id's so that I can delete the successfully synced records off the PDA.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

任性一次 2024-08-02 10:11:01

您没有 ClientApplyChangeFailed 的事件处理程序吗? 您可以使用它来记录失败。

Are you not having a event handler for ClientApplyChangeFailed? You can use this for logging the failures.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文