- Home /
Question by
tpaslou · Jul 12, 2019 at 08:10 AM ·
databaseexceptionnot-working64bit
NotImplementedException: OleDb is not implemented
Hello
I m trying to open a DBF file with OleDbConnection , exported from QGis in unity using the code bellow :
string filepath ="C:\\Users\\thano\\Documents\\Interreg\\Assets\\GIS_Data";
void start {
OleDbConnection ccc = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath + ";Extended Properties=dBASE IV;");
ccc.Open();
OleDbCommand cmd1 = new OleDbCommand("Select * From " + filepath + "ydr_diktyo_loupas_wgs84.dbf", ccc);
OleDbDataReader dr1 = cmd1.ExecuteReader();
if (dr1.HasRows)
{
DataTable dt1 = new DataTable();
dt1.Load(dr1);
}
ccc.Close();
}
but i get this error :
NotImplementedException: OleDb is not implemented. System.Data.OleDb.OleDbConnection..ctor (System.String connectionString) (at :0) (wrapper remoting-invoke-with-check) System.Data.OleDb.OleDbConnection..ctor(string) DBF_importer.Start () (at Assets/GIS_Data/DBF_importer.cs:45)
any help ?
Comment