I have this code that establishes a connection to a series of dbf files. My question now is how to point it to any one particular file, open that file and proceed to read the records? My ultimate goal here is to parse each record and then via a SQL connection transfer the data from dbase to SQL.
private OdbcConnection GetDBFConnection()
{
/* Create reader and open file containing connection string */
TextReader tr = new StreamReader(@"DBF.INI");
/* Read line containing the connection string */
DBFConnectionString = tr.ReadLine();
I found a Dbase reader that can read these types of dbf file. I can use their export tool to dump out to csv or Excel. I do not understand why my connect string did not allow this. These are the file types this program can read.
•dBASE PLUS
•Personal dBASE
•dB2K
•Visual dBASE 7.5
rwheeler23
ASKER
I do not understand these files. However I was able to find an export tool and that is all I need for now.
•dBASE PLUS
•Personal dBASE
•dB2K
•Visual dBASE 7.5