Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A way to access multi remote db connections
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows NT
Network:
Novell 6.x
Database:
Oracle
Miscellaneous
Thread ID:
01297814
Message ID:
01297826
Views:
26
This message has been marked as the solution to the initial question of the thread.
>Remote is successful for each, but I WANT both -->
> Create SQL View AVPRODUCTION Remote Connection AVPROD1, AVTDM1 As;
>
>What is the correct way to access more than one established connection in VFP?

The way to accomplish what you are asking is to query each connection and put the results in a VFP cursor and then use a SELECT on those cursors to join the data together, as in;
lh1 = SQLStringConnect("connect to oracle 8")
lh2 = SQLStringConnect("connect to SQL Server")

SQLExec(lh1,"Some Query","Cursor1")
SQLExec(lh2,"Some Query","Cursor2")

SELECT * FROM Cursor1 JOIN Cursor2 ON Cursor1.PK = Cursor2.FK WHERE ... ORDER BY ... INTO CURSOR MyResults
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform