Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to ceate ADO 'DSN-Less connection' for Visual Foxpro

Posted on 2000-03-13
3
Medium Priority
?
439 Views
Last Modified: 2013-12-25
Can I create ADO 'DSN-Less connection' for Visual Foxpro 6.0 free tables.

Eg.: object.DataSource = <DSN Name>
I want to use "C:\MyDirectory\"

Is it possible, If yes How
0
Comment
Question by:akulap
  • 3
3 Comments
 
LVL 1

Expert Comment

by:krees
ID: 2653967
Hi there

To create an ADO DSN-less connection you must specify in your ADODB.Connection object the string supplied as your datasource for the object.

For example:

dim adoconn as adodb.connection

adoConn.ConnectionString = "driver={Visual FoxPro Database}; datasource=C:\MyDir;"

Hope this works for you...
0
 
LVL 1

Expert Comment

by:krees
ID: 2653972
krees changed the proposed answer to a comment
0
 
LVL 1

Accepted Solution

by:
krees earned 40 total points
ID: 2653980
Sorry there was an error on the DSN

Hi there

To create an ADO DSN-less connection you must specify in your ADODB.Connection object the string supplied as your datasource for the object.

For example:

dim adoconn as adodb.connection

adoConn.ConnectionString = "driver={Microsoft Visual FoxPro Driver}; datasource=C:\MyDir;"

Hope this works for you...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question