![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all, DB2 v9.5 fixpack 5 LUW. I need insert values on a federated table using a trigger. Is that possible? |
|
Actually, I´ve got this SQL ERROR on my trigger creation: SQL30090N Operation invalid for application execution environment. Reason code = "22". LINE NUMBER=8. SQLSTATE=25000 Is there another way to do this? |
#3
| |||
| |||
|
|
No, you can't update both systems within the same transaction |
#4
| |||
| |||
|
|
No, you can't update both systems within the same transaction What about 2-phase commit? |
|
I need insert values on a federated table using a trigger. Is that possible? |
|
No, you can't update both systems within the same transaction |
#5
| |||
| |||
|
|
On 2012-01-26 20:02, Helmut Tessarek wrote: No, you can't update both systems within the same transaction What about 2-phase commit? Helmut, not sure I understand. The question was: I need insert values on a federated table using a trigger. Is that possible? and my answer was: No, you can't update both systems within the same transaction how could a two-phase commit be applied here? /Lennart |
#6
| |||
| |||
|
|
is he really asking to insert into two tables at the same time? or simply to insert into a table that'd somewhere else but accessible through federation...if the latter is the question then wouldn't an instead-of trigger work? |
#7
| |||
| |||
|
|
On 2012-02-03 15:20, Bruce wrote: [...] is he really asking to insert into two tables at the same time? or simply to insert into a table that'd somewhere else but accessible through federation...if the latter is the question then wouldn't an instead-of trigger work? Why bother using a trigger in that case? /Lennart |
#8
| |||
| |||
|
|
I did a quick test using a 2-phase commit federation definition and that didn't work either. |
![]() |
| Thread Tools | |
| Display Modes | |
| |