Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Stop trigger

Author  Topic 

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2002-11-01 : 00:48:43
Hi everybody,

I have a small query. I want to stop the trigger from firing. Is it possible ?

Thanx in advance
sachin

dsdeming

479 Posts

Posted - 2002-11-01 : 08:07:43
You can always drop the trigger. Aside from that, there's no good way I know of.

Do you need to stop trigger processing temporarily or permanently?

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-11-01 : 08:21:54
ALTER TABLE...DISABLE TRIGGER

The exact syntax is listed in Books Online under "ALTER TABLE". You can also use it to enable the trigger after the operation is done.

BTW, a "query" is a SELECT statement, and will not fire a trigger. Only UPDATE, INSERT and DELETE operations will, and they are not queries.

Go to Top of Page
   

- Advertisement -