Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make in connection string
Message
From
28/06/2004 08:44:06
 
 
To
28/06/2004 03:42:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00917856
Message ID:
00917911
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform