SSIS datetime到datetime迁移错误

时间:2015-11-06 00:13:19

标签: tsql ssis

我有简单的(我认为)任务将表从db1迁移到db2并坚持这个看起来像datetime的错误。我完全迷失了:这就是我所拥有的: 消息。

[9 LAB_IN [2]] Error: There was an error with 9 TABLE_OUT.Outputs[OLE DB Source Output].Columns[SCR_DATE] on 9 TABLE_OUT.Outputs[OLE DB Source Output]. The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".

我的源列和目标列ddl是相同的:

Column_name Type    Computed    Length
SCR_DATE    datetime    no  8
SCR_DATE    datetime    no  8

源中没有null或垃圾:这不返回任何内容

SELECT TOP 10 SCR_DATE, LEN(SCR_DATE), * 
 FROM table_IN
 WHERE LEN(SCR_DATE) <> 19  OR  SCR_DATE IS nuLL

所以它的页面编码??这看起来也一样。

Source:  SQL_Latin1_General_CP1_CI_AS
Target:  SQL_Latin1_General_CP1_CI_AS

在我的包中我只有ole-db源和目的地

我在:

SELECT @@VERSION
Microsoft SQL Server 2012 - 11.0.5058.0 (X64) 

我在这里缺少什么? 谢谢。马里奥

P.S

播放后我在派生列框中出现此错误:

   Error at 9 Error at 9 Lab_IN [Derived Column [2]]: The function "SUBSTRING" does not support the data type "DT_DBTIMESTAMP" for parameter number 1. The type of the parameter could not be implicitly cast into a compatible type for the function. To perform this operation, the operand needs to be explicitly cast with a cast operator. 

0 个答案:

没有答案