Site Search:
Sign in | Join | Help
4Penny.net

SQL Server (T-SQL)

Comments and notes on SQL Server 2000, 2005, and T-SQL

Enabling and disabling a SQL Trigger

Sometimes you might need to disable a trigger to keep it from recursing.

ALTER TABLE [yourtable}
DISABLE TRIGGER [yourtriggername]

and

ALTER TABLE [yourtable]
ENABLE TRIGGER [yourtriggername]

Comments

No Comments

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.