enable/disable trigger via code C#

后端 未结 1 1448
误落风尘
误落风尘 2021-01-17 06:16

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条回答
  •  礼貌的吻别
    2021-01-17 06:48

    Execute a DISABLE TRIGGER via a SqlCommand

    0 讨论(0)
提交回复
热议问题