I am attempting to import a CSV file that contains an alphanumeric column into a VARCHAR column in a MS SQL table and am running into issues where the data is sometimes re-written in a scientific notation format. This only occurs when the CSV string format is similar to scientific notation.
EX: CSV string "3344E133" is being imported as "3.344E+136" in the SQL table.
This only happens when the CSV string begins with a number, the only letter is "E", and it ends with a number. Other strings are being imported without being re-written (EX: CSV string "50524676" and "2D8FDD0C" are imported as "50524676" and "2D8FDD0C").
I've confirmed that the column in the CSV file is text and it's being imported into a VARCHAR(50) SQL column. I'm using a Flat File Source Connection Manager for the import.
Any thoughts on why this is happening or what I can do to fix?
DT_STR. SSIS won't change the data type because it "feels like it". SSIS won't even implicitly cast aDT_STRto aDT_WSTR, let alone a to a floating point value. - Larnu3.344E+136then? SSIS certainly won't be doing this, and a CSV can't be anything else other than text; it's a CSV. - Larnu