473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

MySql and OleDB

Art
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.
--
There are only 10 types of people in the world. Those that understand
binary and those who don't.
Nov 8 '06 #1
1 2873
Hi Arthur,

Since the same code works fine, I think it's a driver related issue. In my
opinion, the problem most probably resides in the oledb driver for MySQL.
Since you have downloaded MyOleDB 3.9.6, you can try to contact the driver
provider for this issue. Or we can wait to see if any community member has
some experience on this.

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Soren Bendtsen | last post by:
Hi, I am trying to connect to a MySQL database, using the .Net framework. I installed the newest MyODCB (3.51) and the .Net ODBC drivers from Microsoft. I made a System DSN using the...
4
by: The Bear | last post by:
Has anyone successfully used MySQL with C#? I'm having problems using the Update command Here is the code snippet. I am able to connect to the database. However when I try to update the...
5
by: Steven Blair | last post by:
Hi, Trying to make a connection and getting the following error: "The 'MySQLProv' provider is not registered on the local machine." MySQl is installed and working, I also went to ODBC...
5
by: Tim Bücker | last post by:
Hello. I am trying to get a connection to MySQL using OleDb but it seems that I am making something wrong. I´ve found this source in the net but it doesn´t work for me: ...
5
by: Paul | last post by:
Hi I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows : Imports Microsoft.Data.Odbc ...
3
by: Jeremy Dillinger | last post by:
I am trying to design a program that will use data from a MySQL database. Currently all the data is being used with PHP scripts from a website. I am also trying to build a software solution that...
1
by: zMisc | last post by:
Can I use OLEDB with MySQL? Can someone please help? Rgds Young
3
by: Toni | last post by:
I want to use asp.net & mysql. I am trying to download mysql db and tools from www.mysql.com but i can find everything what I need. Can somebody tell me where I can download DB, Tools, OleDB...
1
by: Carmine [www.thetotalsite.it] | last post by:
Hi, I am using ASP.Net 2.0 with the MySQL Connector .Net 5.1.2.2. I added these lines to the web.config to make the connector.net able to handle the SqlConnection object (and so to bind it to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.