<connectionstrings> <add name="connMySql" connectionstring="Driver={MySQL ODBC 3.51 Driver};server=kdemo.db.88443916.hostedresource.com;User Id=kdemo;database=kdemo;password=;Option=0;" /> </connectionstrings>
// Try to connect to the database based on our stored connection string. string conString = WebConfigurationManager.ConnectionStrings["connMySql"].ConnectionString; using (OdbcConnection con = new OdbcConnection(conString)) { con.Open(); // We are now connected. Now we can use OdbcCommand objects // to actually accomplish things. }
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)