Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DSNLess
Message
From
21/11/2007 17:38:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/11/2007 17:13:47
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01270586
Message ID:
01270598
Views:
24
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform