MySql: 5.6
MSSql: 2014
使用的工具:MySql 的 SSMA
从mysql迁移到mssql时,表和视图的所有结构均已成功迁移。迁移数据时,数据被部分移动,出现以下错误。
ExecuteReader requires an open and available Connection. The connection's current state is closed.; SQL Server cannot access the source table <table-name>
The connection has been disabled.
还有其他一些琐碎的问题,例如“列“modified_on”不允许 DBNull.Value。“我通过编辑表结构手动修复了这个问题。
修复Column 'modified_on' does not allow DBNull.Value
问题,SQL Server Management Studio 不允许我编辑结构。为此,我必须按如下方式更改配置。
打开 SQL Server Management Studio -> 转到工具 -> 选项 ->
设计器并取消选中“防止保存需要表的更改”
娱乐。”
修复以下两个问题:
ExecuteReader requires an open and available Connection. The connection's current state is closed.; SQL Server cannot access the source table <table-name>
The connection has been disabled.
解决方案:
打开 SSMA for MySql -> 转到工具 -> 项目设置 -> 选择
一般从左侧菜单 -> 选择迁移 -> 在Misc部分
-> 设置数据迁移超时时间(以分钟为单位)= 500
打开 SSMA for MySql -> 转到工具 -> 项目设置 -> 选择
一般从左侧菜单 -> 选择迁移 -> 在并行数据迁移部分
-> 设置并行数据迁移模式 from Auto to Custom并设置线程数10 to 5
再次运行数据迁移。
我希望它有帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)