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

SSIS 2008: "truncation may occur.....".

$
0
0

I have a fixed-width file whose first column, is, say, 50 bytes. The length  of the data in the column varies from row to row so most of the 50 bytes is usually blank filled after the data ends. I want to import that column into a Sql column defined as varchar(50). The import works fine but generates the appropriate warning "[SQL Server Destination [22]] Warning: Truncation may occur due to inserting data from data flow column "Col0" with a length of 50 to database column "col0" with a length of 50.".  Yes, it is right but truncation will never actually occur. I can leave this error intact in my package and ignore it but I need a better way to deal with this issue. Recommendations appreciated.

TIA,

edm2


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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