How to connect with dbf file driver in C#.

  • Thread starter Thread starter polachan
  • Start date Start date
P

polachan

Guest
Hi

I am using the following command in powerbuilder application to connect dbf file and to select the record from dbf file.

DBemp.dbparm="ConnectString=Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd=". It is working fine in powerbuilder . I am looking for the same command to apply in C#. Please any help would be very appreciate.

I had used the following command in C# before but it is not working in every machine

OdbcConnection dBaseConnection = new OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=" + filePath +";");

The above command in C# is working fine in some machine but some machine it is not working especially 64 bit operating system.

If I can get the same command as in powerbuilder , I think would be working in every machine. Please can u help

DBemp.dbparm="ConnectString=Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd=".


With Many Thanks

Pol


polachan

Continue reading...
 
Back
Top