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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to two databases

Status
Not open for further replies.

logic4fun

Programmer
Apr 24, 2003
85
US
All,
I need to connect to two different db2 databases in a single pro*C application

For eg:

int main {

exec sql connect to X;

select a into valA from X.tableA;
{
do some caluculations with valA
}
exec sql connect to Y;

insert into Y.tableB values (valA);

terminate;
}

Any suggestions
Thanks in advance

logic4fun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top