Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view with SQLSTRINGCONNECT?
Message
De
17/08/2006 22:36:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01146479
Message ID:
01146625
Vues:
16
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform