In the OLEDB source following query is used ,
SELECT
CAST(LTRIM(RTRIM(RIGHT(('00000000'+CLIENT),8))) as varchar(8)) as client
FROM XX
In the DB, the length of the column is decimal(8,0) , am transforming it to a varchar by left padding zeros.
But the metadata of this transformed field is getting changed to 41 length.
Because of which I am getting truncation warning when connecting to OLEDB destination.
Can you please help with the reason