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

Retrieve data from two different database 2

Status
Not open for further replies.

beti

Programmer
Oct 6, 2002
26
US
Hi all,

I have a question reqarding retrieve data from 2 different database.
Is it possible to retrieve data from 2 different database in a datawindow? If so, how do I handle it?

Thanks!
 
use a datawindow to retrieve data from two different database?
I thank it's impossible.
 
It IS possible to retrieve/update multiple tables from different schemas/databases (including cross-dBMS) using a "single" datawindow! Simply surf to:


Retrieve from tables in multiple databases/schemas:


Update tables in multiple databases/schemas:


---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Hi PowerOject,

Sorry I don't get access to the address you mentioned above. Can you please kindly copy the message and display in here. Many thanks!
 
Hi beti,

Add return 2 in your retrievestart event.
Retrieve rows from 1st database.
Change transaction object.
Retrieve rows from 2nd database.
Restore first transaction objects.

Make sure that you are not resetting dw.

Your code will look like,

retrieveStart event of dw
Return 2

ue_retrieve event of window

dw_1.SetTransObject (tr1)
dw_1.Retrieve (...)

dw_1.SetTransObject (tr2)
dw_1.Retrieve (...)

dw_1.SetTransObject (tr1)

Cheers,
Abhijit.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top