Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared Connection Problem
Message
De
14/07/2005 07:13:06
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01032328
Message ID:
01032552
Vues:
16
Hi Mark,

BOb Archer supplied the answer. Apparently this is a design change in VFP9. You can get a sharable connection using the syntax
ConnString = 'dsn=YourDataBase;uid=YourUserID;pwd=YourPassWord;QueryLogFile=No'
nHnd = SQLSTRINGCONNECT(ConnString,.T.)
but to actually open multiple views you need to get a second handle from the first one as
nHnd2 = SQLCONNECT(nHnd)
With nHnd2 you can open multiple views with no problem.

Regards,
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform