Reading DBF file with ADO.NET RRS feed

  • Question

  • Hi,

    I'm using Microsoft Odbc driver to access DBF files, and  I have this code:

    OdbcConnection odbc = new OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=" + Path.GetDirectoryName(ofd.FileName));
    OdbcDataAdapter odbcAdapterTabeleDokumenata = new OdbcDataAdapter("select * from dokument", odbc);

    DataTable TabelaDokumenata = new DataTable();

    Pretty straightforward code, I connect to DBF file, read data from file dokument.DBF into data table.

    And trouble is that it won't read ALL records, it skips some 10% of them, these records are normal records,
    NOT deleted ones.

    What should I change to get all of them?

    Friday, August 15, 2008 5:42 AM