Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试了多种方法,并且我还在 Internet 上研究了该主题,只是为了找到使用平面文件连接读取的单行固定宽度文件。当你有三个或更多不同的行时,你如何做到这一点?
配置平面文件连接管理器编辑器时,请确保从“格式”下拉列表中选择“右对齐”。固定宽度选项令人困惑,它不适合在每行末尾带有回车/换行的文件。选择 Ragged right 后,前往 Advanced 部分并将文本文件中包含的每一列添加到列表中,并设置其 InputColumnWidth 和 OutputColumnWidth。这些值表示文本文件中每一列的长度。