同步框架触发器不会触发

编程入门 行业动态 更新时间:2024-10-11 05:28:44
本文介绍了同步框架触发器不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好! 我在新配置的应用程序上遇到了麻烦.此应用程序连接到SQL Server 2005,并运行自定义C#代码.我已经编写了它,以便在用户端使用数据集和绑定对象,并且具有双向同步到服务器的Microsoft同步框架. 我尝试使用谷歌搜索的挑战是,偶尔在SQL Server表中未给新行赋予CreationDate,因此不会在整个用户之间进行同步.它在表上具有自动生成的触发器,该触发器是根据程序中的本地数据库缓存设置的. 我的问题是,我可以删除此触发器,而是确保客户端上的应用程序插入了CreationDate吗? 如果没有,我该如何解决这个问题? 为什么日期戳采用UTC日期格式?我看到了向用户显示LastEditDate的好处,但随后我需要时区的正确时间.

Hello people! I have trouble with our newly configured application. This application is connected to a SQL server 2005, and runs custom C# code. I have written it to use datasets and bound object at the user end, and Microsoft sync framework with bidirectional sync to the server. My challenge, which i have tried googling, is that occasionally a new row is not given a CreationDate at the SQL server table, and therefore is not synced throughout the users. It has the auto-generated triggers on the table, from set-up off local-database cache in the program. My question is, can I remove this trigger, and instead make sure that CreationDate is inserted by the application on the client side? If not, how can I work at this problem? And why is the date stamp in format UTC date? I see benefits from showing the user the LastEditDate, but then I need the correct time for my time zone.

推荐答案

要删除触发器,请参见拖放触发 [ ^ ]. For trigger removal see DROP TRIGGER[^].

更多推荐

同步框架触发器不会触发

本文发布于:2023-10-16 14:18:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1497818.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:触发器   框架

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!