473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help with connecting to FoxPro please

Hello,

I am trying to connect to a visual fox pro table from my asp.net page.

I dragged an odbc connection and set it to a visual fox pro driver file
dsn pointing to "mydocuments" folder.

Here is the connection string

SourceDB=c:\Documents and Settings\bgunay\My
Documents;PWD=;SourceType=DBF;Collate=Machine;Dele ted=Yes;BackgroundFetch=Yes;Exclusive=No;Driver=Mi crosoft
Visual FoxPro Driver;Null=Yes;UID=

I then dragged an odbc command and set it to this connection. I was
then able to see the list of visual fox pro(.dbf) tables in "my
documents" folder. I then set the query to command text to return every
record from the "corp" table.

Then, I executed the command as follows

cnn.Open()

Dim reader As Odbc.OdbcDataReader
reader = OdbcCommand.ExecuteReader()
While reader.Read
Response.Write(reader.Item(0) & "<br>")
End While

It came back with "Corp.dbf does not exist" which is so bizarre since
corp.dbf exists
and is visible when I build the odbc command. But for some reason when
I try to select records from it from the code behind, I get that weird
message.

Any ideas?

Thanks,

Burak

Feb 7 '06 #1
3 1291
take a look at www.connectionstrings.com. Also make sure the ASP.NET
account has access to the DBF files.

Feb 7 '06 #2

Hi Ray,

I used the oledb connection string

"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating
Sequence=general"

It said I need to register 'vfpoledb.1' on my machine.

How do you make sure ASP.NET accoutn has access to DBF files?

Thanks,

Burak

Feb 7 '06 #3
It said I need to register 'vfpoledb.1' on my machine.
Try downloading it (don't remember the page, perhaps MS?) and install.
How do you make sure ASP.NET accoutn has access to DBF files?


ASP.NET runs under a certain account depending on the OS used. In XP
the user is ASPNET. Make sure it has read (or read/write) access to the
folder the DBF's are in.

Feb 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: stuart | last post by:
Hello, I have a table in database that contains property information. I need to select the distinct village that each property but the Village name is in a column with the Property name and...
1
by: MyndPhlyp | last post by:
I am about to completely lose what is left of my poor mynd! The historical dissertation gets rather verbose, so I hope you can wade through it all. I really need some help on this one or I'm...
4
by: Salad | last post by:
When I connect to FoxPro tables it takes about 1 1/2 minutes to view the records in a small table. Is this normal ODBC behavior?
2
by: Amedee Van Gasse | last post by:
Hello, Since it is the first time I'm posting in these groups, I believe a (short) introduction of myself would not be a bad thing. I am mainly a support engineer, not a programmer. I do have...
2
by: Edb | last post by:
Hi Everyone, I need to build an ASP.Net project that wraps around a FoxPro Database. It appears that I need to create an ODBC Connection to .dbf files. Some of them have relations to each...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
1
by: HR Head | last post by:
Dear All, Fresh Programmers Required Urgently Visual Foxpro / VB / .NET Skill set required :- Visual Foxpro 1 or 2 years Experince Location:- Malaysia / Singapore Qulification ;- Any...
3
by: Salad | last post by:
Is it the rule that any table that you want to use via ODBC must be a UNIQUE record? And if you want any speed associated with the table it should be indexed? I was having some difficulty...
7
by: z71mdridin | last post by:
I have an asp.net website that uses Form authentication to authenticate users. I need to provide users with a report based on FoxPro data that resides on a remote server. When I attempt to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.