从 MySQL 到 SQL 服务器 unicode 和非 unicode 的 SSIS 数据流

SSIS Data Flow from MySQL to SQL Server unicode and non-unicdoe

我在 SSIS 的 Data Flow 任务中遇到“cannot convert between unicode and non-unicdoe string data types”错误,我无法弄清楚原因。

然而,OLE DB Destination 任务仍然出错,显示“Column "one" cannot convert between unicode and non-unicode string data types.

我尝试使用 Data Conversion 任务将所有内容转换为“string [DT_STR]”,目标任务停止显示红色 X 但执行失败并显示“Error: Data conversion failed while converting column "one" (13) to column "copy of one" (32). The conversion returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page."

增加 onecopy of one 的列长度。 first/second 列的长度(位)不足。增加长度并尝试。如果 40,则将其更改为 >60。 Unicode 需要更多位来存储字符串。