Hi everybody,
I'm working with DB2/NT 7.2 FIXPAK 5. I have a UDF wich calls a C DLL. The DLL is located in my D:\Program Files\SQLLIB\function folder, and the folder is in the PATH environment var.
OK, here is the problem: When I use interactivley from command center:
SELECT poner(1,1) from sysibm.sysdummy1;
- there is no problem, the C program does what i want,
But when I put a call to the UDF in a trigger nothing happens...
The trigger text is this:
CREATE TRIGGER DB2ADMIN.TRGMQ2
AFTER INSERT ON DB2ADMIN.TBLEJEMPLO
FOR EACH ROW
MODE DB2SQL
BEGIN ATOMIC
VALUES (poner(1,1) );
END
(i also tried in trigger text **SELECT poner(1,1) from sysibm.sysdummy1;** instead of **VALUES (poner(1,1) ); **
If anybody could help me...
Thanks a LOT.
Sudamericano