Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Enterprise
Expertise: Intermediate
Jun 3, 1999

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 <table_name> disable trigger {<trigger_name> | all}
You can use a similar command to enable the triggers after the process is over:
 
alter table <table_name> enable trigger {<trigger_name> | all}
KulBhushan Sharma
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date