Issue while loading date parameter in DB2 query in ssis

删除回忆录丶 提交于 2019-12-11 08:54:49

问题


I have a DB2 query that takes date parameter as input. for some reason, it throws error saying Numeric Value out of range. Date value - 2018-05-21 17:33:56.2463440 little bit of query - Snapshot from SSIS

" SELECT LPAD(i.abc, 13, '0') AS abc, 
LPAD(i.abc,9,'0') AS abc,
b.abc,
i.abc,
i.abc,
i.abc,
i.abc,
i.abc,
i.abc,
i.abc,
i.abc,
sd.abc

FROM abc.abci  LEFT OUTER JOIN abc.abc b
ON i.abc= b.abc,
abc.abc f 
 INNER JOIN abc.abc v ON
i.abc= v.abc

,abc.abc md,
abc.abc sd
WHERE 
i.abc= 'A'
AND i.abc= 'N'
AND i.abc= 'Y'
AND i.abc= f.abc
AND i.abc= f.abc
AND i.abc= f.abc
AND i.abc=f.abc
AND i.abc= v.abc
AND i.last_update_ts > ?  "

last_update_ts - datatype is - timestamp(6) in source.

the above query works when we hard code the date as

i.last_update_ts > '2018-05-21 17:33:56.2463440'

But, it is throwing an error when it is passing through a parameter.

来源:https://stackoverflow.com/questions/50517651/issue-while-loading-date-parameter-in-db2-query-in-ssis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!