SSIS - 将 DT_TEXT(长度 11,000 个字符)转换为 DT_STR 并修剪为 1,000 个字符 [英] SSIS - Converting DT_TEXT(Length 11,000 Characters) to DT_STR and trim to 1,000 characters
本文介绍了SSIS - 将 DT_TEXT(长度 11,000 个字符)转换为 DT_STR 并修剪为 1,000 个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从文本文件 (.csv) 中读取数据,将其中一列截断为 1000 个字符,然后使用 SSIS 包推送到 SQL 表中.
I want to read data from text file (.csv), truncate one of the column to 1000 characters and push into SQL table using SSIS Package.
输入 (DT_TEXT) 的长度为 11,000 个字符,但我的挑战是......
The input (DT_TEXT) is of length 11,000 characters but my Challenge is ...
- 仅当最大长度为 8,000 个字符时,SSIS 才能转换为 (DT_STR).
- 无法对 Stream(DT_TEXT 数据类型)执行字符串操作
推荐答案
现在有了解决方法/解决方案;我截断了平面文件源中的文本并选择了忽略错误的选项;
Got a workaround/solution now; I truncate the text in Flat File Source and selected the option to Ignore the Error;
如果您找到更好的解决方案,请分享!
Please share if you find a better solution!
仅供参考:
这篇关于SSIS - 将 DT_TEXT(长度 11,000 个字符)转换为 DT_STR 并修剪为 1,000 个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文