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

Incorrect Metadata from OLEDB source

$
0
0

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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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