Hi guys just a quick question,
After having a nightmare trying to get an app I was writing using Visual Studio 2010 to connect to my local MySQL database using the ODBC MySQL Connector 3.51. I decided that I would try the native .Net MySQL provider thing...
using MySql.Data.MySqlClient
instead of
using System.Data.Odbc
Using the MySqlClient I have been able to get my app working, connecting to the server and even doing the select last_insert_id()
- something I had problems getting to work when I tried to do it using ODBC - I have noticed that it's a little bit funny about the data reader, seems like you need to close it each time you have finished reading from it or it doesn't do anything.
I was just looking for some advice on what exactly the difference is between using these 2 methods to connect to MySql (I know using the ODBC driver method you have to make sure that the client machine has a copy of the ODBC driver installed but don't know about the other method)