I am working in SQL Server 2008 and SSIS (BIDS). I have a data flow task that takes a flat file into a destination table. All columns in the destination table are varchar(255).
I am querying the destination table, and I'm noticing some odd behavior.
For instance, in a certain column, several values are '0.00'. When I run LEN against this column, I get 7 for this value, not 4. Why is this happening? Is SSIS known to introduce non-ASCII characters in the data flow task?
An example of the flat file is:
A|stuff||x||061|-117.96|0.00
An example of my table schema:
SELECT 'x' + T.Seq1 + 'x' FROM T
can help illuminate where space is. My assumption is that you'll have trailing space from your source. Apply an RTRIM operation on the data before you store it. – billinkc