Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Enabling Triggers through script

Status
Not open for further replies.

haldiramsUSA

Programmer
Mar 19, 2002
2
US
Is there a way to disable a trigger and enable it again? Do not want to drop and create if there is another way out.

thanks
 
Disable and enable a specific trigger.
ALTER TABLE trig_example DISABLE TRIGGER trig1
ALTER TABLE trig_example ENABLE TRIGGER trig1

Disable and enable all triggers in a table.
ALTER TABLE trig_example DISABLE TRIGGER trig1
ALTER TABLE trig_example ENABLE TRIGGER trig1 Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions in the SQL Server forum. Many of the ideas apply to all forums.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top