Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

External trigger on DB2 V7.2 for Linux

Posted on 2004-10-29
1
Medium Priority
?
430 Views
Last Modified: 2009-12-16
Hi all, I'm new on DB2 external triggers  and external stored procedures, I have to implement a trigger that calls an external (C++) "program". Im current using DB2 7.2 on a Linux (Suse 9.0). Can anyone give a brief description on how can I implement that and also tell me if I can do that using this plataform I just mentioned ?
Im really  tied to the plataform so please restrict your comments to that. I read some documents about external triggers but Im not sure that it works on V7.1, I also read some paper about  external stored procedures and I think it should also work if I call the external SP from a "normal" trigger. Can anyone adivise me on that ?

Thanks a lot,

Jean Marrara
0
Comment
Question by:jmarrara
1 Comment
 
LVL 46

Accepted Solution

by:
Kent Olsen earned 1500 total points
ID: 12463088

DB2 supports stored procedures in C/C++.  You should be able to write the procedure in C and then tie it to a conventional trigger.  When the trigger fires, execute the C-based stored procedure.


Kent
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Integration Management Part 2
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question