on 10-24-2005 7:50 AM
Hi All,
I hav a scenario where i have to break the message and insert a record into two different DBtables.
1. Break the incoming message and insert the first 3 fields into the DBTable1.Get the primary key of the record that is inserted and use it in inserting the rest of the fields of the message in the next DBTable.
2. Get the primary key field of the DBTable1 and insert it along with the rest of the fields in the DBTable2.
Now my problem is to know how to catch the primary key field from the DBTable1?
Hi Anil,
usually you should have the primary key of an insert. Then you just need two statements in your JDBC XML.
If you don't have the key (for example an auto increment): Use a synchronous stored procedure for the insert. Or make an insert and a select just with that inserted fields. Anyway you would need a XI Business Process, because you have to handle the answer of the database.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.