简体   繁体   中英

SSIS transfer from PostgreSQL (UTF-8) to SQL Server (ANSI)

I need to create ETL getting data from PostgreSQL to SQL Server. The data on PostgreSQL are in UTF-8, the SQL Server has ANSI.

So I created very simple ETL showing no error ( picture #1 ). I am casting the source varchar data via Derived Column as shown on picture #2 . But once launched, ETL returns an error of Data Truncation . I assume this is caused by different coding. The data types (both type and length) are the same on both servers. Any ideas?

Picture #1
图片1

Picture #2
图片2

Error

[Convert] Error: The "Convert" failed because truncation occurred, and the truncation row disposition on "Convert.Outputs[Derived Column Output].Columns[C_FirstName]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.

请尝试从SSIS工具箱而不是“派生列转换”中执行“数据转换”任务

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM