【问题标题】:Cannot extract DATE from SSIS 2008 OLEDB Source无法从 SSIS 2008 OLEDB 源中提取 DATE
【发布时间】:2014-03-09 05:31:40
【问题描述】:

我试图简单地从支持 DATE 的 sql server 中提取数据并将其转储(不进行更改)到不支持 DATE 但支持 DATETIME 的 SQL server 中。现在,我的 SSIS 包仅使用一个具有 oledb 源和目标的数据流任务。源任务执行 SQL 来获取数据。源 SQL 任务总是失败,并出现以下错误。有人可以帮我找出原因并解决这个问题吗?

谢谢。

错误 -

[GET MY DATA [1]] Error: There was an error with output column 
"A_DATE_COLUMN" (62) on output "OLE DB Source Output" (11). The 
column status returned was: "Text was truncated or one or more 
characters had no match in the target code page.".

[GET MY DATA [1]] Error: The "output column "A_DATE_COLUMN" (62)" 
failed because truncation occurred, and the truncation row disposition 
on "output column "A_DATE_COLUMN" (62)" specifies failure on truncation. 
A truncation error occurred on the specified object of the specified component.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  
The PrimeOutput method on component "GET MY DATA" (1) returned error 
code 0xC020902A.  The component returned a failure code when the 
pipeline engine called PrimeOutput(). The meaning of the failure code 
is defined by the component, but the error is fatal and the pipeline 
stopped executing.  There may be error messages posted before this 
with more information about the failure.

【问题讨论】:

    标签: sql sql-server ssis


    【解决方案1】:

    在您的源任务上,右键单击->显示高级编辑器->输入和输出属性->源输出->输出列->数据类型属性->数据类型/长度

    根据您的要求以类似的方式在源和目标中更改(数据类型/长度)。

    我将数据类型更改为 DT_DBTIMESTAMP 并且它起作用了。早些时候它是 Unicode 字符串 [DT_WSTR],我不知道为什么会这样。无需更改 TruncationRowDisposition 选项的值。

    注意 - 此答案取自 - http://social.technet.microsoft.com/Forums/en-US/5cbdea26-3951-4fd8-b53b-3db6a17b088e/-text-was-truncated-or-one-or-more-characters-had-no-match-in-the-target-code-page?forum=sqlintegrationservices

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-09-27
      • 1970-01-01
      • 2013-04-04
      • 2022-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多