Hello, I have some small issue, I have build a aspx + aspx (cs) file on localhost with SQL server 2005, But now want to shift it to live server, and that live server has just MYSQL and no SQL Server. Code For ASPX (cs) file with connection string in Bold : Now, that i have restored the database, ( just few empty tables ) on MYSQL, but i need to change connection string ? As while opening aspx page , we get this error now Any Advice ? How can we make this work with MYSQL , Instead of SQL Server ?
In its current form no amount of connection string changes will make this work. You are using the SQL Server specific versions of the .NET data access objects, you will need to change them to the ODBC versions or there is a specific MySQL version of the data access objects available from http://dev.mysql.com/downloads/connector/net/5.0.html. If what you posted was the whole program it should be a case of replacing the SQLConnection, SQLCommand and SQLDataAdapter for either the generic ODBC or specific MySql ones (Never used it so dont know what they call it, I would guess MySQL...) As for the connection string itself I find http://www.connectionstrings.com/ a fantastic reference. Welcome to the fun world of production servers not being the same as development ones Jen