gpt4 book ai didi

sql-server - 尝试更改平面文件源错误输出列的 SSIS 问题

转载 作者:行者123 更新时间:2023-12-05 02:19:18 28 4
gpt4 key购买 nike

我在尝试使用 SSIS 将数据从 .CSV 文件加载到 SQL 表时遇到问题。在平面文件源中,因为我在表中的 SQL 列是数据类型 nvarchar(max) 我将输出列中文件源列的所有数据类型设置为 UNICODE 文本流( DT_NTEXT) 之后我得到了附加的错误。当我尝试更改平面文件源错误输出列时,出现此错误:

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

最佳答案

不是在平面文件源组件中编辑数据类型,而是在平面文件连接管理器中编辑它们。转到高级选项卡,如下所示。一旦您修改了它,最简单的方法就是重新创建平面文件源组件,以便它可以获取新的元数据。

enter image description here

关于sql-server - 尝试更改平面文件源错误输出列的 SSIS 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43117736/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com