Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating System DSN with VFP 1

Status
Not open for further replies.

choppysuey

Technical User
Mar 28, 2001
54
US
I've got everything pretty much working in my VFP app. All I need now is to create a System DSN on about 20 Windows Xp machines. Rather than doing it one by one does anyone know if I can use VFP 6.0 to automate the creation of the system DSN on those machines? Or should I look at another language to do this?

thanks
-s
 

Why not simply create a file DSN and distribute it to the various machines?

A file DSN is simply a text file containing the DSN info. To create it, open the ODBC applet in Control Panel and select the File DSN tab.

You can distribute the file just like any other file, and use it in VFP to create a connection in the usual way.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thanks for the reply quick reply Mike. Sounds like a simple enough solution to try. However I've been reading addition threads about using ODBC DSN-Less method of doing things. What are your thoughts on this?
 
choppysuey,

I wrote a FAQ sometime back that you might find useful. Here's the link:

Add or Remove DSN
faq184-4064

Also, you could indeed create your connection on the fly using a connection string. You can look at the Visual FoxPro section at the following site (it's near the bottom):

boyd.gif

SweetPotato Software Website
My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top