Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make in connection string
Message
De
28/06/2004 08:44:06
 
 
À
28/06/2004 03:42:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00917856
Message ID:
00917911
Vues:
8
>Currently i want to use SQLSTRINGCONNECT() to make a connection to SQL server 2000, what connection string i can use? May you give a sample connection string which i can refer to. Thanks!

Xiaoming:

You can create a DSN using the Microsoft DSN Wizard (from Control Panel) then copy the generated string to the clipboard to use in your program, like this:
nHandle = SQLConnect("{your DSN here}")
cConnection = SQLGetProp(nHandle,"ConnectString")
_cliptext=cConnection
See detailed instructions (and more) at:
http://fox.wikis.com/wc.dll?Wiki~VFPCommandSQLStringConnect


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform