Quote:
Originally posted by dr_suresh20
I have successfully set up federated server. This includes creation of wrapper -> server -> user mapping -> nicknames etc. As per the requirement, I created a trigger on database1 to insert/update some values on database2.table2 and obtained the following error.
[IBM][CLI Driver][DB2/NT] SQL30090N Operation invalid for
application execution environment. Reason code = "22". LINE
NUMBER=2. SQLSTATE=25000
However, if I go through db2 command window, then execute command manually, then it goes through fine.
Any ideas?? Please treat this as urgent.
|
db2 ? sql30090
22 A federated insert, update, or delete operation is invalid in
a function, a data-change-table-reference, a dynamic compound
statement, a trigger, and an application execution environment
where a
o SAVEPOINT is in effect
o scrollable cursor is used
o target view contains multiple tables or nicknames