error[42s02] while reading .bdf file RRS feed

  • Question

  • hi everyone,

             i have problem in reading .dbf file..Plss help me

    String ConnectionString;
                ConnectionString = @"Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=C:\\BDF";
                OdbcConnection con = new OdbcConnection();
                con.ConnectionString = ConnectionString;
                OdbcCommand cmd;

    cmd= new OdbcCommand("SELECT * FROM 18850938R2.dbf", con);
                OdbcDataReader dr = cmd.ExecuteReader(System.Data.CommandBehavior.SequentialAccess);


    i'm getting error couldnot find the object..

    this is path in my system C:/BDF/18850938R2.dbf


    thank u
    Tuesday, June 29, 2010 2:33 PM