devxlogo

Enable or Disable Triggers on SQL Server 7.0

Enable or Disable Triggers on SQL Server 7.0

You can enable and disable triggers on tables for SQL Server 7.0. This means you don’t need to drop triggers and recreate them if some process (which requires that triggers not to be used) does data modifications, such as inserting, updating, or deleting of records. You can combine this enabling or disabling of triggers with data modification scripts to make the whole process simpler. The SQL command to disable a specific trigger or all triggers on a table is:

 alter table  disable trigger { | all}

You can use a similar command to enable the triggers after the process is over:

 alter table  enable trigger { | all}

devx-admin

Share the Post: