Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Date field conversion issue in SSIS when integrating from DB2 to SQL

$
0
0

I am working on data integration between DB2 and SQL server using SSIS package. From SQL query I am fetching the records and doing a lookup on DB2 data query where i have mapping on a column which is of Date datatype. In SQL the field is of date datatype but in DB2 it is always returning as a string. I tried converting the field to Date in DB2 but still it returns as string. I am new to DB2 and not sure how I can cast the field in db2 so my both mapping are of date datatype.The conversion is in the lookup query so can't convert using data conversion . I tried below syntax 

CAST(DATE_ISSUED AS DATE) as DATE_ISSUED.  When checked on the Advance Editor Output columns this field is still showing as string though i did casting as date.

Why is the SSIS package Advance editor is showing a date field from DB2 as always string. 

My source query(SQL) has to  do a lookup on the DB2 as i have date range condition .vice versa will not work for me as I have huge data in DB2 which i don't need .Rather just pull that matches with my source query.

Any help is highly Appreciated !!






Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>