[英]How to catch that a trigger has been fired on sql server
I have a table on SQL and when there is an insert to this table I want to print this inserted data. 我有一个关于SQL的表,当有一个插入到这个表时,我想打印这个插入的数据。
What I am thinking in: 我在想什么:
I don't know what is the name of the feature that makes ac# code fires when a trigger fires. 我不知道触发器触发时ac#代码触发的功能名称是什么。
Can you help me with this issue, please? 你能帮帮我解决这个问题吗?
There are several ways of solving this problem, and the soluton depends on the system architecture (permissions, accesibility), and the knowledge to implement it. 有几种方法可以解决这个问题,而解决方案取决于系统架构(权限,可访问性)以及实现它的知识。
There are basically this options, which are affected by the pointed out factors: 基本上有这个选项,受到指出的因素的影响:
The last solution is the one that will pose the least problems. 最后一个解决方案是问题最少的解决方案。 It's not "smart" but it's very easy to implement. 这不是“聪明”,但它很容易实现。 You can adjust the polling period depending on the expected number of messages and the "real-time" requirements of the pringing application. 您可以根据预期的消息数量和pringing应用程序的“实时”要求调整轮询周期。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.