tags:

views:

798

answers:

1

I'm trying to read a Paradox 7.x .db file in a .Net 3.5 app and I'm not being successful on that.

First of all, when I'm registering the odbc, as a user or system dsn, the Microsoft Paradox ODBC Driver only display versions up to 5.x, so it looks like that it does not support Paradox version 7.x.

At connectionsstrings.com I've found the connection string that is supposed to work with Paradox 7.x:

Provider=MSDASQL;Persist Security Info=False;Mode=Read;
Extended Properties='DSN=Paradox;DBQ=C:\mydbfolder;
DefaultDir=C:\mydbfolder;DriverId=538;FIL=Paradox 7.X;MaxBufferSize=2048;
PageTimeout=600;';Initial Catalog=C:\mydbfolder

But when I try to test the connection using a Data Adapter I get the following exception:

"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

I have specified the ODBC as a user DSN and as a System DSN as well but kept receiving the same error.

Any clues on what should I do?

Thanks,

Pedro

A: 

Curious, why not use the OLEDB provider and then use the classes in the System.Data.OleDb namepsace?

casperOne
When I tried the OLEDB provider I get a "External table is not in the expected format." error. I've browsed and it looks like I need to have Borland's BDE installed as well.This error occurs even when I try to open the table with Microsoft Excel.
Pedro