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

SSIS ODBC Source get char string truncated in middle when converting to unicode DT_WSTR

$
0
0

SSIS

In a simplified test, the SSIS package reads from an ODBC Source of MySQL, and writes to aFlat File Destination of text file.

The source contains columns of char(xx) and varchar(xx), and these columns get truncated at half of the length when reach destination. I noticed in Advanced Editor that these columns are DT_WSTR in both sections of External Columns and Output Columns, and the length equals to the source.

As a workaround, I changed ODBC Source to ADO NET Source, and the problem disappears.

I need some pointers to find out what was wrong when using ODBC Source.

It is on Windows with driver mysql-connector-odbc-8.0.12-winx64.msi, and please let me know if need more details. Thank you for your help.


Viewing all articles
Browse latest Browse all 24688

Trending Articles