Disable Enable Trigger SQL server for a table

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

    As Mark mentioned, the previous statement should be ended in semi-colon. So you can use:

    ; DISABLE TRIGGER dbo.tr_name ON dbo.table_name
    

提交回复
热议问题