Disable Enable Trigger SQL server for a table

后端 未结 7 1860
粉色の甜心
粉色の甜心 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:11

    use the following commands instead:

    ALTER TABLE table_name DISABLE TRIGGER tr_name
    
    ALTER TABLE table_name ENABLE TRIGGER tr_name
    

提交回复
热议问题