使用DTS将SQL Server 2000升级到MySQL 5.1 - 如何解决DateTime问题?

发布于 2024-07-25 12:09:40 字数 442 浏览 1 评论 0 原文

我正在尝试使用 DTS 从 sql server 2000 迁移到 mysql。 这是我所知道的最好的工具。

但是一个sql server表有一列日期时间类型,DTS建议以下sql代码:

 `StartDate` long varbinary NULL, 
 `EndDate` long varbinary NULL,

应该是:

 `StartDate` DateTime NULL, 
 `EndDate` DateTime NULL,

我手动更改,但DTS不接受新脚本。 它说:

返回 0x800040e14 的 HResult 发生意外错误。 返回了 Error 结果,没有错误 消息。

I'm trying to migrate from sql server 2000 to mysql by using DTS. That's the best tool I know yet.

But one a sql server tables has a column with datetime type, the DTS suggest the following sql code:

 `StartDate` long varbinary NULL, 
 `EndDate` long varbinary NULL,

It should be:

 `StartDate` DateTime NULL, 
 `EndDate` DateTime NULL,

I do change manually but the DTS doesn't accept the new script. IT says:

HResult of 0x800040e14 returned
Unexpected error occurred. An Error result was returned without an error
message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绝不放开 2024-08-01 12:09:40

我已经解决了这个问题。

我按照以下步骤操作:

  1. 更改建议的脚本将 long varbinary 替换为 datetime
  2. 不要担心可能出现的任何可能的警告消息
  3. 此更改不会反映在仍显示类型 long varbinary 的目标列列表中
  4. 转到转换,检查是否列具有目标关系

如果发生任何问题,请尝试:

  1. 在“转换”中,单击“新建”
  2. 按照提供有关列和您想要建立的关系的所有信息的说明进行操作。

就是这样。 不管怎么说,还是要谢谢你!

I've already solved the problem.

I followed the steps:

  1. Change the suggested script replace long varbinary to datetime
  2. Don't worry about any possible warning message which may rise up
  3. This change will not reflect at Destination columns list which still display the type long varbinary
  4. Go at Transformations, check out if columns has destionation relationships

If any problem happens, try:

  1. At Transformations, click new
  2. Follow the instruction providing all information about columns and the relationship you want to make.

That's it. Thanks anyway!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文