SSIS 中 Oracle 到 SQL2005 DATETIME 字段溢出

Oracle to SQL2005 DATETIME field overflows in SSIS(SSIS 中 Oracle 到 SQL2005 DATETIME 字段溢出)
本文介绍了SSIS 中 Oracle 到 SQL2005 DATETIME 字段溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SSIS 将数据从 Oracle 导入 SQL Server 2005.我认为 Oracle 中的日期时间字段的存储精度高于 SQL Server 2005DATETIME"字段所允许的精度,从而导致溢出错误.获得桌子的最佳做法是什么?

I'm importing data from Oracle to SQL Server 2005 using SSIS. I think the datetime fields in Oracle are stored to a higher precision than SQL Server 2005 "DATETIME" fields will allow, causing overflow errors. What's the best practice for getting the table in?

这些表有很多日期时间字段,而且有很多表,所以如果每个字段没有大量的手动工作就很棒...

These tables have lots of datetime fields, and there are lots of tables, so it'd be awesome if there wasn't a ton of manual work for each field...

我已阅读 https://stackoverflow.com/questions/2231028/dealing-with-timestamp-datetime-when-copying-data-from-oracle-to-sql-server-using 以及可以工作,但我必须为每个字段、每个表都这样做,而且我宁愿有一个通用的设置或过程......

I've read https://stackoverflow.com/questions/2231028/dealing-with-timestamp-datetime-when-copying-data-from-oracle-to-sql-server-using and that could work, but I'd have to do that for each field, for every table, and I'd rather have a universal setting or process...

有什么想法吗?

推荐答案

只是将其标记为已回答",因为似乎没有全局设置.

Just flagging this as 'answered' since there appears to be no global setting.

这篇关于SSIS 中 Oracle 到 SQL2005 DATETIME 字段溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

SSIS: Model design issue causing duplications - can two fact tables be connected?(SSIS:模型设计问题导致重复-两个事实表可以连接吗?)
SQL to Generate Periodic Snapshots from Transactions Table(用于从事务表生成定期快照的SQL)
MyBatis support for multiple databases(MyBatis支持多个数据库)
Oracle 12c SQL: Missing column Headers in result(Oracle 12c SQL:结果中缺少列标题)
SQL query to find the number of customers who shopped for 3 consecutive days in month of January 2020(查询2020年1月连续购物3天的客户数量)
How to get top 10 data weekly (This week, Previous week, Last month, 2 months ago, 3 month ago)(如何每周获取前十大数据(本周、前一周、上个月、2个月前、3个月前))