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" <(E-Mail Removed)> wrote in message
news:e5W$(E-Mail Removed)...
> 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
>