Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing remote-view connection
Message
De
11/04/2007 17:45:12
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
11/04/2007 17:15:06
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
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 SP1
Divers
Thread ID:
01214484
Message ID:
01214743
Vues:
13
Can I use this method to use a shared connection or a connection name already stored in the .dbc?

Sure. You can use *any* connection handle with connstring.

IMHO it's a great idea to use all RVs with CONNSTRING. Then you can remove the connections altogether from the dbc, you can include a "views" dbc inside your app which means each user is using their own copy => no dbc contentions and no problems with dbc versioning etc, and if you use SQLStringConnect() for your connstring, you don't need to set up odbc datasources on user machines any more.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform