Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DSNLess
Message
De
21/11/2007 17:38:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/11/2007 17:13:47
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01270586
Message ID:
01270598
Vues:
23
>I want to have a VFP application that uses MS SQL, but I do not want to have to setup a DSN on every computer.
>
>Can VFP use MS SQL with having to install anything on the work station (except the Runtime)?
>
>No DSN setup at all.

And when you open a DSN with notepad, you get your connect string. Just put all the lines together, i.e. replace each ";"+cr with just ";" and that's it. You may omit a few pieces from the string if you like: the preferred database to USE is optional; the application is just a description, a courtesy to the DBA - not a showstopper if absent.

Another way to get the connection string in use is to get a handle and then
_cliptext=SQLGETPROP(h,"ConnectString")
Then just paste it in the code where you need it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform