Saket said:
Cor,
I am developing a Website using ASP.NET with backend on MySQL? As u asked I
am specifying exactly what i need to know
1) Can we connect to MySQL using classes in System.Data.OdbcClient or
System.Data.OledbClient namespace ? Is ODBC or oledb driver available for
MySQL?
2) If we have to use the Connector provided by MySQL, what is the reference
i need to add in the project so that i can access and import
MySQL.Data.MySQLClient namespace?
ODBC is phased out at microsoft, don't go that route (as it is also
very slow compared to native providers). There are a couple of .NET
providers for MySql. The free ones are all GPL-ed, so if your
application is a commercial application, be aware of this that you then
also have to GPL your software if you use them. MySQL provides one of
them, it's the old ByteFX provider. Another is available at sourceforge,
search for MySQL and .NET, I don't have the url here.
You can also use the commercial provider from Corelab (
www.crlab.com).
We use that one and it's very good.
Frans.