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:
01297827
Views:
20
Hello Jim,

You're Right... That's what I'm working on now - thanks

>>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
>
>
Edgar L. Bolton, B.S. B.B.A.
Previous
Reply
Map
View

Click here to load this message in the networking platform