Using trigger in stored procedure

  • How do I disable a trigger inside a stored procedure, perform some actions and re-enable the trigger afterwards. This is becuase you can't create a trigger within a stored proceudre. I can't drop and re-create the trigger within the stored procedure.

  • run this to disable a trigger

    ALTER TABLE <TableName>

    DISABLE TRIGGER <TriggerName>

    and this to enable it

    ALTER TABLE <TableName>

    ENABLE TRIGGER <TriggerName>

  • Thanks for your help. I will give it a try.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply