SSIS中的日期时间数据类型错误 [英] Datetime datatype error in SSIS

查看:396
本文介绍了SSIS中的日期时间数据类型错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......

我正在使用SSIS将数据从一个表迁移到另一个表..但是在转换日期时间数据类型时出现错误....到目前为止,我所做的是拖放oledb源以及数据转换转换和oledb目标...在oledb源代码中,我创建了一个select命令,其中我将lstdt设置为''并尝试转换为dt_date,但我得到的错误值为2.
我应该在SSIS中使用什么数据类型才能将其转换为sql datetime数据类型...如果我把getdate()放到了那里,我也会出错...

请建议我....

谢谢
Nithya

Hi All....

I am migrating a data from one table to another table using ssis.. but i got an error when converting datetime datatype.... what i done so far is drag and drop an oledb source and data conversion transaformation and oledb destination... in oledb source i created a select command in that i put lstdt as '''' and tried to convert to dt_date but i got an error value as 2..

What datatype should i use in SSIS in order to convert it to sql datetime datatype... if i put getdate() also i got an error...

kindly suggest me....

Thanks
Nithya

推荐答案

在将值复制到新表中之后,请提供样本日期字段值和所需日期时间格式.
Please provide the sample date field value and the desire date time format after copy the value in new table.


这篇关于SSIS中的日期时间数据类型错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆