473,386 Members | 1,720 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.

dbase III, IV, 5 files and ADO 2.0

hi,

how can i access a dBase *.dbf database in CODE only, in Visual Basic .Net
2005 and Ado 2.0 ?

this is for a off site machine where i have to access the data thru code.
how do i make the connection and which provider do i use? all the code i saw
is for Sql server or Access. i would prefer to access the database directly
without using an Access front end to which the *.dbf files are linked.

a few lines of code would be appreciated.

thanks,

ray
Feb 13 '07 #1
4 1267
You just need the right connection string. See www.connectionstrings.com

Then you import the System.Data.OleDb Namespace and use its methods just
like you would use the SqlClient methods.

Don't have time right now to throw out some code, but if you need further
information, shout back.
"ray well" <no****@nospam.comwrote in message
news:e5**************@TK2MSFTNGP06.phx.gbl...
hi,

how can i access a dBase *.dbf database in CODE only, in Visual Basic .Net
2005 and Ado 2.0 ?

this is for a off site machine where i have to access the data thru code.
how do i make the connection and which provider do i use? all the code i
saw is for Sql server or Access. i would prefer to access the database
directly without using an Access front end to which the *.dbf files are
linked.

a few lines of code would be appreciated.

thanks,

ray

Feb 13 '07 #2
thanks terry, it worked. ray
Feb 13 '07 #3
use _ACCESS_ this dotnet _CRAP_ is bloatware


On Feb 13, 6:17 am, "ray well" <nos...@nospam.comwrote:
hi,

how can i access a dBase *.dbf database in CODE only, in Visual Basic .Net
2005 and Ado 2.0 ?

this is for a off site machine where i have to access the data thru code.
how do i make the connection and which provider do i use? all the code i saw
is for Sql server or Access. i would prefer to access the database directly
without using an Access front end to which the *.dbf files are linked.

a few lines of code would be appreciated.

thanks,

ray

Feb 15 '07 #4
use _ACCESS_ this dotnet _CRAP_ is bloatware


On Feb 13, 6:17 am, "ray well" <nos...@nospam.comwrote:
hi,

how can i access a dBase *.dbf database in CODE only, in Visual Basic .Net
2005 and Ado 2.0 ?

this is for a off site machine where i have to access the data thru code.
how do i make the connection and which provider do i use? all the code i saw
is for Sql server or Access. i would prefer to access the database directly
without using an Access front end to which the *.dbf files are linked.

a few lines of code would be appreciated.

thanks,

ray

Feb 15 '07 #5

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

Similar topics

4
by: Matt Young | last post by:
I've been tasked with integrating an older management system based on DBF files with my snappy new ASP application to provide users of the ASP application with real-time data from the management...
2
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...
2
by: NOSPAMrclark | last post by:
I am looking for information on how to deal with dbase index files (cdx) when modifying data in dbase database files (dbf). I have an application with hundreds of .dbf files that I need to modify...
1
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
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...
5
by: MontainDoctor | last post by:
Hi Folks I have a database in dbase. The dbf tables have numerous indexes because of which the linking is not possible. What to do? Rakesh
2
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
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...
1
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...
10
by: Johny | last post by:
Is there a module for reading/modifing db files from Python? Thanks for help B.
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.