[英]SSIS transfer from PostgreSQL (UTF-8) to SQL Server (ANSI)
I need to create ETL getting data from PostgreSQL to SQL Server. 我需要创建将数据从PostgreSQL到SQL Server的ETL。 The data on PostgreSQL are in UTF-8, the SQL Server has ANSI.
PostgreSQL上的数据使用UTF-8,SQL Server具有ANSI。
So I created very simple ETL showing no error ( picture #1
). 因此,我创建了一个非常简单的ETL,显示没有错误(
picture #1
)。 I am casting the source varchar data via Derived Column
as shown on picture #2
. 我正在通过“
Derived Column
转换源varchar数据,如图picture #2
所示。 But once launched, ETL returns an error of Data Truncation
. 但是一旦启动,ETL就会返回
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工具箱而不是“派生列转换”中执行“数据转换”任务
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.