Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view with SQLSTRINGCONNECT?
Message
From
17/08/2006 22:36:07
 
 
To
17/08/2006 13:51:35
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01146479
Message ID:
01146625
Views:
17
>I have tried the following, but get "Invalid Subscript Reference"
>
>
>lnConId = SQLSTRINGCONNECT("myconstring",.T.)
>use <rv> CONNSTRING SQLGETPROP(lnConId,"ODBChdbc")
>
Hi Aaron,

If you want to share ODBC connection between multiple views then, for each additional remote view, you need to obtain new connection handle by calling SQLCONNECT.
lnConId1 = SQLSTRINGCONNECT("myconstring",.T.)
use <rv1> CONNSTRING lnConId1
lnConId2 = SQLCONNECT(lnConId1)
use <rv2> CONNSTRING lnConId2
Thanks,
Aleksey.
Previous
Reply
Map
View

Click here to load this message in the networking platform