Disable Enable Trigger SQL server for a table

后端 未结 7 1861
粉色の甜心
粉色の甜心 2020-12-12 14:24

I want to create one proc like below but it has error on syntax. Could anyone pointing out the problem?

Create PROCEDURE [dbo].[my_proc] AS

BEGIN

DISABLE T         


        
7条回答
  •  执念已碎
    2020-12-12 15:18

    if you want to execute ENABLE TRIGGER Directly From Source :

    we can't write like this:

    Conn.Execute "ENABLE TRIGGER trigger_name ON table_name"
    

    instead, we can write :

    Conn.Execute "ALTER TABLE table_name DISABLE TRIGGER trigger_name"
    

提交回复
热议问题