Subject | RE: [firebird-support] howto run a program after insert a record |
---|---|
Author | Sasha Matijasic |
Post date | 2008-05-07T08:21:53Z |
>Hi, although I think it could work, I would avoid it. What happens when your external program throws an exception? I don't know, I have never tried it, but I like my UDFs small and fast and with as little possibility of failure as possible.
> I need to fire events to print a label after every insert. Do you think
> it's
> correct to create a trigger to intercept "after insert" and using an
> UDF to
> call external program?
>
Why can't you post an event from after trigger and write another client which will subscribe to that event and will do the printing?
Sasha