【发布时间】:2013-06-20 04:29:12
【问题描述】:
我正在开发一个非常简单的 SSIS 包:运行存储过程以将变量表中的数据直接导出到平面文件目标中。最初,变量表中的每一列都定义为varchar(max),到目前为止工作正常。为了提高性能,我决定对变量表应用约束,它与 varchar(max) 不兼容,我必须为其分配一个特定的数字,例如varchar(10)。在此更改之后,此 SSIS 出现了一系列错误:
Error: 0xC0202009 at ESP AL Extract, OLE DB Source [835]: An OLE DB error has
occurred. Error code: 0x80040E21.
An OLE DB record is available. Source: "Microsoft SQL Native Client"
Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated
errors. Check each OLE DB status value, if available. No work was done.".
Error: 0xC0208265 at ESP AL Extract, OLE DB Source [835]: Failed to retrieve
long data for column "SR_RequestID".
Error: 0xC020901C at ESP AL Extract, OLE DB Source [835]: There was an error
with output "OLE DB Source Output" (846) on component "OLE DB Source" (835).
The column status returned was: "DBSTATUS_UNAVAILABLE".
Error: 0xC0209029 at ESP AL Extract, OLE DB Source [835]: The "output
"OLE DB Source Output" (846)" failed because error code 0xC0209071 occurred,
and the error row disposition on "component "OLE DB Source" (835)" specifies
failure on error. An error occurred on the specified object of the
specified component.
平面文件列数据类型为string[DT_STR]。任何想法表示赞赏。
【问题讨论】:
-
MAX 列和 SSIS 是一个糟糕的组合。绝对避免!