I know asp.net with mySQL is possible, but does it work well (fast and stable)? I am looking at a project for a client, they want to stay on mySQL, but they like they idea of going to asp.net from PHP. I can give them a better price by far in asp.net (more productive for me) and keep the project within their budget.
BUT, am I going to run into a whole lot of little ‘gotchas’ dealing with a mySQL DB instead of the SQl Server DB that I am used to?
Looking for advice from people who have actual done projects using these two together…either successfully, or unsuccessfully.
Seriously, man, I wouldnt try to over complicate it. Write the site just like you normally would, but using the MySQL data provider instead of the mssql provider. Keep it simple. Now there are some differences in how the two DBMSs handle their SQL.
Here are items that tripped me up originally.
MSSQL: SELECT TOP 5 * FROM Table
MySQL: SELECT * FROM TABLE LIMIT 0,5
MSSQL: SELECT IsNull(NumberField,0) FROM Table
MySQL: SELECT IfNull(NumberField,0) FROM TABLE
MySQL: Everything is CaSe-SenSiTivE
MySQL: Has stored procedures, but they are not as user friendly as MSSQL, so stick with inline sql.
MSSQL: select * from table where column1 = @col1 and column2 = @col2
MySQL: select * from table where column1 = ? and column2 = ? (remember to specify your command parameters in order)
There are a bunch of other little things that may complicate or confuse, but thats what this site is for, so you can ask