Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing remote-view connection
Message
From
11/04/2007 17:45:12
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
11/04/2007 17:15:06
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01214484
Message ID:
01214743
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform