baslıktanda anlasılacagı uzere bir trigger icinde
kodların basında calısmasını istemedigim bir triggerı inactive etmek ve kodların sonunda da active etmek istiyorum
yada bunun baska bir yolu varmıdır...
active ve inactive keywordleri alter trigger ile kullanılabiliyor sanırım
[Firebird] Triggeri ,trigger icinden inactive/active etmek
[Firebird] Triggeri ,trigger icinden inactive/active etmek
ÜŞENME,ERTELEME,VAZGEÇME
Kafama takıldı, ben de araştırdım biraz. İşinize yarar mı bilmiyorum :
http://www.ibphoenix.com/archive/main.n ... ;ID='29375'
> Hello everybody.
>
> Im working with 1.5rc8, and do his job very fine... BUT.
>
> I need to dissable a trigger fired on insertion during a stored
> procedure, but not lucky doing it.
>
> I try to use "alter inactive" ... but not alowed in procedure.
That depends, especially with Firebird 1.5
You can't execute ALTER TRIGGER ... inside a PSQL code module,
but for example you *could* use the EXECUTE STATEMENT ...
*Could* means, that you might be able to do that, but it doesn't
mean that I would recommend doing that.
> I try to changing the status in the system table, but may be I'm a
> little comfused, but even I do, still fired the trigger.
>
> someone can put me here a little exaple "how to do..." a disable
> triger?
Why do you want to disable a trigger?
Mind you, disabling a trigger means that the trigger gets disabled
for *all* connected users!
HTH,
Thomas Steinmaurer
Logging/Auditing Suite for InterBase and Firebird
http://www.iblogmanager.com
http://www.ibphoenix.com/archive/main.n ... ;ID='29375'
> Hello everybody.
>
> Im working with 1.5rc8, and do his job very fine... BUT.
>
> I need to dissable a trigger fired on insertion during a stored
> procedure, but not lucky doing it.
>
> I try to use "alter inactive" ... but not alowed in procedure.
That depends, especially with Firebird 1.5
You can't execute ALTER TRIGGER ... inside a PSQL code module,
but for example you *could* use the EXECUTE STATEMENT ...
*Could* means, that you might be able to do that, but it doesn't
mean that I would recommend doing that.

> I try to changing the status in the system table, but may be I'm a
> little comfused, but even I do, still fired the trigger.
>
> someone can put me here a little exaple "how to do..." a disable
> triger?
Why do you want to disable a trigger?
Mind you, disabling a trigger means that the trigger gets disabled
for *all* connected users!
HTH,
Thomas Steinmaurer
Logging/Auditing Suite for InterBase and Firebird
http://www.iblogmanager.com
Sevgi, Saygı.....