Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

MySQL vs MSSQL

So I have been using MSSQL 2012 for a while now and I like it.  I am developing an aspx webform which requires that I host the page and database.  I found a good hoster but the database they utilize is MYSQL.

First of all are there any significant performance differences between the full SQL and MYSQL.  Would it be simple to convert my database to MYSQL?  Are there any size limitations to MYSQL?  Any other notable differences?
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

While they are very similar in capability (at least on a basic level), there are definite differences that can cause you problems or at least headaches.  For example, the syntax is different in some cases.  The classic example I like to give is:

MS SQL: SELECT TOP 10 * FROM MyTable
MySQL: SELECT * FROM MyTable LIMIT 10

As you can see, different.  And one will not work on the other.  90% is the same... but there are differences.

I would recommend you setup a local MySQL Database (it's free) and test your code against it.  Generally, when you develop something you should stick with the database platform you develop on.
While back when i was making some tests MSSQL was much faster than MySQL ...and somewhere on the Net i found a mention that MySQL was at its best on same performance level as SQL 2000...But in databases there are more lot things than single query performance...like good database design,licensing cost,clustering...unless you put the same load and run your tests you want get a definite answer.
I am going to chip in and say that if you are considering a database change, also look at Postgresql, as your host may support this too.
I've used both and like features of both.  They both have things that I wish were different than they are.

Out of the box, MySQL uses its own extensions to ANSI SQL that look a lot different than what you're used to.  Unless you're used to developing in MySQL you probably want to turn on ANSI mode.  The SQL will probably run slightly slower than the MySQL native SQL, but the conversion will be easier.  For simple queries the difference, if any, will be too small to be noticed.
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial