SSIS:如何处理平面文件源中的换页分隔符?
我目前正在尝试在 SSIS 中处理一个使用换页符作为行分隔符的平面文件。处理这个分隔符的最佳方法是什么?
I am currently trying to process a flat file in SSIS that uses a form feed character as the row delimiter. What would be the best way to handle this delimiter?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅以下 SO 问题的答案。答案中的示例逐步解释了如何处理以换行作为行分隔符的文件,并且该示例使用 Ç (c-cedilla) 作为列分隔符。您可以根据需要更改列分隔符。这是使用换行符作为行分隔符处理文件的一种方法,可能不是您正在寻找的最佳方法。
为什么不导入 UTF-8 平面文件时,SSIS 无法识别换行符 {LF} 行分隔符吗?
希望有所帮助。
Refer to the answer provided to the following SO question. The example in the answer explains step-by-step how you can process a file that has Line Feed as the row delimiter and the example uses Ç (c-cedilla) as the column delimiter. You can change the column delimiter according to your requirements. This is one way, may not be the best way that you are looking for, of processing a file with Line Feed as row delimiter.
Why doesn't SSIS recognize line feed {LF} row delimiter while importing UTF-8 flat file?
Hope that helps.