ssma mysql 出错,SSMA MySql到MsSql空值错误

The MySQL contains some tables with some zero date time : '0000-00-00 00:00:00'. When using SSMA to migrate the database into MsSql I am facing the error about cannot insert DbNull. This is understandable since neither MySql or MsSql has this field nullable.

What I do not understand is that I changed SSMA's Default Projet setting to Replace with a constant all zero-date Not Null columns. The constant I choose is : 1900-01-01.

4IUkM.png

Is there any other settings that must be set?

解决方案

The only way I found is to go inside the MySql database, alter every table that is having a default value with zero based datetime to allow null. Then, I update every of these fields to update zero based value to null. From here, using the ssma tool work since their is no more zero based date time. This is far from being perfect but it works.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值