Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's happening with VFP?
Message
De
23/05/2002 16:09:12
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00634764
Message ID:
00660752
Vues:
29
Randy

With the new CONNSTRING clause for RVs we don't need ODBC DSNs on client pcs any more, or connections in the dbc.

We've written a tiny app that allows users to specify database type (oracle, SQL Server etc), servername, database, usernamne, password. The app assembles a connection string and encrypts it into a .dat file. Then we have a truly *tiny* class that can be passed names of RVs or SPT as follows

oRemote.USE([myRemoteViewName])
oRemote.SQLExec([select * from mytable where fieldname=?lcfieldname],[cursor])

The class whips the connectionstring out of the encrypted file and uses it appropriately.

Because we no longer need to manage ODBC dsns or DBC connections for each customer, we now include a dbc with nothing but Views into our VFP executable, eliminating the reported contentions and slow opening of DBCs. And each client has and can maintain its site-specific connection settings securely and with ease.

You won't believe how happy customers are to lose the #$%^#$T% ODBC DSN!

This works really well with SQL Server.

Regards

JR
"... 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