SSIS问题:尝试更改平面文件源错误输出列

3
我在使用SSIS将数据从.CSV文件加载到SQL表时遇到了问题。在Flat File Source中,因为我的SQL表中的列是数据类型nvarchar(max),所以我将输出列中文件源列的所有数据类型设置为Unicode文本流(DT_NTEXT),但这样做后我得到了附加的错误信息。当我试图更改Flat File Source Error Output Column时,我遇到了以下错误:

Error at Data Flow Task [Flat File Source [1155]]: The data type for "Flat File Source.Outputs[Flat File Source Error Output]" cannot be modified in the error "Flat File Source.Outputs[Flat File Source Error Output].Columns[Flat File Source Error Output Column]".

Error at Data Flow Task [Flat File Source [1155]]: Attempt to set the data type properties on "Flat File Source" failed with error code 0xC020400B. The error occurred while attempting to set one or more of the data type properties of the output column.

请问如何解决这个问题?任何帮助/指导都将不胜感激。

SSIS_Error
AdvancedEditorForFlatFileSource_Info

1个回答

5

在平面文件源组件中不要编辑数据类型,而是在平面文件连接管理器中进行编辑。如下图所示,进入高级选项卡。修改完成后,最好重新创建平面文件源组件以便它可以获取新的元数据。

enter image description here


谢谢Mark。我会尝试一下的。 - Melinda

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接