开发者

Transition from SQL Server to MySQL (no data migration) - what's the difference?

I've written my website using ASP.NET MVC and SQL Server (used a SQL Server instance which ran locally on my machine).

I'm about to upload my site to a hosting provider. However, his DB works under MySQL.开发者_运维知识库 I don't care about the data already in the DB itself. It's mostly mock data and a few tables which I don't mind rewriting. But how do I go about the transition from SQL Server to MySQL? How does this influence my queries inside my code? is it the same code syntax? Will I have to recreate the table definitions? In my project I used LINQ to SQL.

Am I forced to look for a host with SQL Server capabilities (i.e. licenses)? (I hope not...)

Thanks!


You may be able to transition smoothly, but I greatly doubt this will be the case.

The differences are many and whether you could depends on what features you used when developing.

If you kept to one of the standards, you may be in luck.

See a comparison sheet on wikipedia.

In regards to the Linq aspect of your question - you should be able to use a Linq provider for MySql instead of MSSql without a problem.

Here is a link to one: http://code2code.net/DB_Linq/


If you do decide to go with the MySql hosting, I suggest you test all aspects of you application to ensure they are working as expected.


LINQ to SQL works with MS SQL Server only...so if you want to keep using it, you need to find a host with a MSSQL database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜