If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 on iSeries - UPDATE statement through ODBC on triggered table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-09, 23:42
nicio nicio is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
DB2 on iSeries - UPDATE statement through ODBC on triggered table

I am running an UPDATE command on a table which has an AFTER UPDATE trigger. When the update statement is executed on the SQL screen on iSeries, it executes fine and all records are updated.

If I run the same update through ODBC (using the same user), only the first row it finds is updated. After that I get the error:
"MCH3401 - Cannot resolve to object F0101_SRV. Type and Subtype X'0203' Authority X'0000'."

If I execute the update a second time, a second row is updated before I get the error.

Can anybody suggest why a trigger might cause an error through ODBC only? It works fine on iSeries. If I temporarily disable it, the UPDATE works from both iSeries and ODBC.

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On