使用 BCP 导入 IBM 时间戳?

发布于 2024-11-27 19:03:34 字数 149 浏览 6 评论 0原文

是否有直接方法使用 BCP 将 2008-01-30.22.44.22.435894 格式的 IBM 时间戳导入到 SQL Server 2008 R2 Enterprise datetime2 字段中?

我有从 AS400 传送的文件,并且批量加载在时间戳列上失败。

Is there a direct way to import an IBM timestamp in the format 2008-01-30.22.44.22.435894 using BCP into SQL Server 2008 R2 Enterprise datetime2 field?

I have files being delivered from the AS400 and the bulk loads are failing on the timestamp columns.

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

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

发布评论

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

评论(1

别把无礼当个性 2024-12-04 19:03:34

好吧,既然没有人回答,我就假设这是不可能的。

我决定将其批量加载到 varchar 中,以便稍后可以进行转换。

Well, since no one is answering I'm going to assume its not possible.

I decided to just bulk load it into a varchar so it can be converted later.

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