Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigger start/stop via ODBC

Status
Not open for further replies.

bobo123

Programmer
Oct 4, 2002
30
Please, anybody could give me a sample, how to remove (or start) trigger on DB2 via ODBC ?
I tried:
sqlexec(Handle,"RMVPFTRG FILE(DPNDEV/FESW00)")
This returns an error
then:
sqlexec(Handle,"CALL 'RMVPFTRG FILE(DPNDEV/FESW00)'")
gives an error too.

Thanks Bobo
 
You cannot execute a trigger, from ODBC or SQL. They are executed automatically by DB2 whenever an update, insert, or delete is performed (depends on the type of trigger).

You can remove *drop) the trigger with the following SQL:

DROP TRIGGER myTrigger;

HTH

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top