enable/disable trigger via code C#

允我心安 提交于 2019-12-30 15:39:11

问题


Is there any way to enable or disable a SQL SERVER trigger programmatically in C#, or do I have to modify the trigger itself to control whether or not my code invokes it?


回答1:


Execute a DISABLE TRIGGER via a SqlCommand



来源:https://stackoverflow.com/questions/2838062/enable-disable-trigger-via-code-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!