473,513 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dBase file in VB.Net ?

19 New Member
Is there a way to read a simple dBase file using vb.net (2008)?
Feb 12 '08 #1
3 1797
Frinavale
9,735 Recognized Expert Moderator Expert
Is there a way to read a simple dBase file using vb.net (2008)?
I'm not sure what a dBase file is.
What have you tried so far to solve your problem?
Have you researched the problem yet and have any questions about what you've discovered so far?

-Frinny
Feb 12 '08 #2
Kirsten
19 New Member
I tried:
Expand|Select|Wrap|Line Numbers
  1.             Dim ConString = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceType=DBF;" & "SourceDB=h:\act\order;Exclusive=NO;BackgroundFetch=No;Collate=Machine;"
  2.  
  3.             Dim odbcConn As New Odbc.OdbcConnection(ConString)
  4.  
  5.             odbcConn.Open()
  6.             Dim odbcComm As New Odbc.OdbcCommand
  7.             odbcComm.Connection = odbcConn
  8.             odbcComm.CommandText = "select * from inv"
  9.             Dim Dreader1 As Odbc.OdbcDataReader
  10.             Dreader1 = odbcComm.ExecuteReader
  11.  
And get error on the
odbcConn.Open()

ERROR [IM001] [Microsoft][ODBC Driver Manager] Driver does not support this function:


I'm not sure what a dBase file is.
What have you tried so far to solve your problem?
Have you researched the problem yet and have any questions about what you've discovered so far?

-Frinny
Feb 12 '08 #3
Frinavale
9,735 Recognized Expert Moderator Expert
I tried:
Expand|Select|Wrap|Line Numbers
  1.             Dim ConString = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceType=DBF;" & "SourceDB=h:\act\order;Exclusive=NO;BackgroundFetch=No;Collate=Machine;"
  2.  
  3.             Dim odbcConn As New Odbc.OdbcConnection(ConString)
  4.  
  5.             odbcConn.Open()
  6.             Dim odbcComm As New Odbc.OdbcCommand
  7.             odbcComm.Connection = odbcConn
  8.             odbcComm.CommandText = "select * from inv"
  9.             Dim Dreader1 As Odbc.OdbcDataReader
  10.             Dreader1 = odbcComm.ExecuteReader
  11.  
And get error on the
odbcConn.Open()

ERROR [IM001] [Microsoft][ODBC Driver Manager] Driver does not support this function:
I've never used Visual FoxPro before.
I found an awesome resource online though, it's a book titled .NET for Visual FoxPro Devlopers. I think you'd be most interested in Chapter 7: Data Access with ADO.NET. The first section in that chapter talks about the history of ODBC and FoxPro...I think this chapter may help you to understand and fix our problem (there's a lot of information there).

-Frinny
Feb 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5515
by: Ivan | last post by:
Hi, SQL Server 2000 SP3 Windos 2000 Server SP4 I have a DTS package that imports data from a dBase IV databse with files located in two folders (dBF1 and dBF2). I use a transform data task...
10
7883
by: level8 | last post by:
I would like to see a Clipper/dbase DBF file as a table in SQL Server 7.0. How can I SELECT rows from DBF file? Should I use OLE DB Provider or ODBC, and how?
3
6652
by: Kshitij Rajhans | last post by:
HI, How to connect to the dBase database?? One option is to create a DSN and use it.But I want to do it in some other way like just passing a connection string or like that. Thanks in...
1
5242
by: Derek Griffiths | last post by:
Most of the complicated programs I write are boring applications that manipulate databases associated with the medical billing program where I work. The program uses foxpro dbases (version 3) for...
6
4118
by: Tomek | last post by:
Hi, Please help me with Data Connections into dBase files. I have catalog with lot of files like *.dbf and *.mdx . Every file contains one table (I can see it in MS Access). How can I make...
2
1832
by: chiefsitebuilder | last post by:
I have a question about saving an MS Access program to CD and verifyng that the program works after being saved. Here is my situation, I have a person who developed an application for me using...
0
1549
by: j.np.12 | last post by:
I have an Access XP database which links to dBase III format tables and updates them. The app used to work fine until recently when the dBase index tables keep getting corrupted and need to be...
6
3784
by: Aleyna[] | last post by:
Hi all, I wanted to connect an old DBASE file (I don't know the exact version) but I could not make it at all. I couldn't find a way to execute sql statements on db file using c#. The...
1
2667
by: manontheedge | last post by:
I'm importing some .dbf files into Access, but getting "can't recognize format errors" on some of them I realised that the ones that transfer okay are "dBASE III/IV/Clipper" file format, and the...
2
11120
by: bcbrock | last post by:
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My...
0
7157
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
7379
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
7535
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...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.