Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Nayan Jain asked how to insert into a table without firing its INSERT trigger. san suggested simply removing the trigger. Tony Flaherty recalled a disable-triggers command but reported locking problems with it. Art S. Kagel gave SET TRIGGERS FOR mytable DISABLED, then the INSERT, then SET TRIGGERS FOR mytable ENABLED. Khem Chander agreed, noting it needs DBA, table owner or alter privilege plus resource privilege.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Nayan Jain — — source: Informix-list mailing list archive (1991-1998)
Hi all,
I have a trigger on an insert in table. Is there any way that i can
suppress the trigger action on INSERT.
In another word, i want to insert into the table but do not want the
trigger to be fired.
Any way to do that ?
TIA,
Nayan !
↪ replying to Nayan Jain
san — — source: Informix-list mailing list archive (1991-1998)
Simply remove trigger
Nayan Jain <nayan.jain@tatainfotech.com> wrote in message
news:7ili3i$22$1@news.xmission.com...
>
> Hi all,
>
> I have a trigger on an insert in table. Is there any way that i can
> suppress the trigger action on INSERT.
>
> In another word, i want to insert into the table but do not want the
> trigger to be fired.
>
> Any way to do that ?
>
> TIA,
> Nayan !
>
>
↪ replying to Nayan Jain
Tony Flaherty — — source: Informix-list mailing list archive (1991-1998)
There is a disable triggers for table command, or something similar, RTFM
I had limited success with this though, IIRC problems with locking the table
during execution of the command.
--
---------------------------------------
Tony Flaherty aef@mfs.misys.co.uk
Analyst Programmer
Misys Financial Systems
All statements and opinions are my own,
Misys don't pay me enough to have opinions
on their behalf
.
Nayan Jain wrote in message <7ili3i$22$1@news.xmission.com>...
>
>Hi all,
>
>I have a trigger on an insert in table. Is there any way that i can
>suppress the trigger action on INSERT.
>
>In another word, i want to insert into the table but do not want the
>trigger to be fired.
>
>Any way to do that ?
>
>TIA,
>Nayan !
>
>
↪ replying to Nayan Jain
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Nayan Jain wrote:
>
> Hi all,
>
> I have a trigger on an insert in table. Is there any way that i can
> suppress the trigger action on INSERT.
>
> In another word, i want to insert into the table but do not want the
> trigger to be fired.
>
> Any way to do that ?
SET TRIGGERS FOR mytable DISABLED;
INSERT INTO mytable .......
SET TRIGGERS FOR mytable ENABLED;
Art S. Kagel
↪ replying to Nayan Jain
Khem Chander — — source: Informix-list mailing list archive (1991-1998)
HI Buddy,
You can use the statement
set triggers on tablename to disabled. Then until you enable the trigger
back the trigger will not fire. But you will need to be the DBA or be
the owner of the table or have alter privilege on the table and resource
privelege on the database.
Thanks,
khem Chander.
kchande@yahoo.com
Nayan Jain wrote:
> Hi all,
>
> I have a trigger on an insert in table. Is there any way that i can
> suppress the trigger action on INSERT.
>
> In another word, i want to insert into the table but do not want the
> trigger to be fired.
>
> Any way to do that ?
>
> TIA,
> Nayan !
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.