-
Triggers in SQL
I have a trigger in a sql script that runs an update, however there is one time when I run an update statement that I don't want the trigger to run. Is there any way that in that instant I can code the update script to not fire the trigger?
Hope someone can help.
Thanks
-
You can disable trigger temporarily ALTER TABLE t DISABLE TRIGGER tr;
or
You have to check for that condition in trigger code and exit out without doing anything.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|