G
Guest
After extensive searching I have come to an apparent dead end.
I need to access a MySql database from C#. ODBC makes this very easy
however not every customer is running MySql so I want to create a reusable
OleDb layer that can be used with Sql Server, Oracle, MySql. I found MyOleDB
3.9.6, installed it and like magic I connected to the database very easily.
I thought my problems were over - until I tried to run the simplest sql
statement, "select * from ADMIN_USER;" (with and without the semi colon) and
was met with a "'MySqlProv' failed with no error message available, result
code: DB_E_ERRORSINCOMMAND(0x80040E14)" error.
Of course the sql works as expected from the MySql command console. I have
tried to fill a dataset using a DataAdapter as well as trying to execute a
DataReader. Both throw the same error. The same code works properly when
connected to a Sql Server version of the database.
Anybody else seen this? I don't want to resort to ODBC or the MySql .Net
connector. I REALLY want a generic OleDb solution.
Thanks in advance.
I need to access a MySql database from C#. ODBC makes this very easy
however not every customer is running MySql so I want to create a reusable
OleDb layer that can be used with Sql Server, Oracle, MySql. I found MyOleDB
3.9.6, installed it and like magic I connected to the database very easily.
I thought my problems were over - until I tried to run the simplest sql
statement, "select * from ADMIN_USER;" (with and without the semi colon) and
was met with a "'MySqlProv' failed with no error message available, result
code: DB_E_ERRORSINCOMMAND(0x80040E14)" error.
Of course the sql works as expected from the MySql command console. I have
tried to fill a dataset using a DataAdapter as well as trying to execute a
DataReader. Both throw the same error. The same code works properly when
connected to a Sql Server version of the database.
Anybody else seen this? I don't want to resort to ODBC or the MySql .Net
connector. I REALLY want a generic OleDb solution.
Thanks in advance.