sql server 转换为mysql,将SQL Server数据库转换为MySQL

本文探讨了从SQL Server 2008迁移至MySQL时可能遇到的问题,包括数据迁移工具的选择、应用程序兼容性评估及代码调整策略。指出迁移不仅仅是简单的数据库转换,还需要考虑应用程序的数据访问策略、SQL语法差异及特定功能的兼容性。

I have an application database on SQL Server 2008 Express on my dedicated server. It's not enough for my web app.

Are there any good free conversion tools that will enable me to convert my current SQL Server database to MySQL on my server.

Will my web app be able to work the same?

解决方案

There isn't enough information in the question, as it stands, to really address the many issues around whether the web app will work the same.

The easy part will be porting the schema and data over to another RDBMS. SQL Server has a great set of Generate Scripts commands to generate CREATE TABLE statements. You'll be able to create INSERT statements as well for your data, all through SQL Management Studio.

The challenge comes when moving your application over.

what's the data access strategy? Is it all ADO.NET prepared/built statements, or is it stored procedures? LINQ to SQL perhaps?

the SQL statements within: to what degree are they ANSI standard, and how reliant is the SQL on TSQL-specific keywords? The answers here will point to the amount of work needed to move the SQL statements and logic to the new RDBMS.

does the app rely on any SQL Server specific features or features that MySQL doesn't have? What's the cost of rewriting the code to fit into MySQL?

hopefully the app uses a centralized connection string. That'll need changing, and hopefully it's in the web.config. If it's hardcoded in the data-access code, then it's a game of find+replace.

The short answer to the second question is that you will NOT be able to just implement your data in a new RDBMS and have the application work. It'll have to be recompiled to use new data access libraries (ADO.NET for MySQL).

All in all, it can of course be made to work the same, but the effort needed isn't small, and 100% dependent on the code.

3bd6ebab720b9514470e7b2064680100.png

c5adf718216d994e3fe05ec9cd7ccbab.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值