SSIS Foreach循环与特定的平面文件 [英] SSIS Foreach Loop with specific flat files

查看:145
本文介绍了SSIS Foreach循环与特定的平面文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从包含不同csv文件类型的文件夹导入不同的csv文件。
所以我需要筛选我的foreach循环与起始平面文件名称。
我只想处理以MyFileType_1 * .csv开头的文件,而不是同一文件夹中的其他文件。
任何建议是值得欢迎的,谢谢。


解决方案

在你的for-each容器中可以指定哪些文件读作Ocaso在说。在for-each容器的变量映射选项卡中,您可以在其中设置要保存找到的文件的变量。然后,您可以使用此变量作为连接字符串到平面文件连接。



I am trying to import different csv files from a folder containing different csv file types. So I need to filter my foreach loop with the starting flatfile name. I only want to process files starting with MyFileType_1*.csv and not the others in the same folder. Any suggestion is welcome, thanks.

解决方案

In your for-each container can specify which files to read as Ocaso is saying. In the Variable mappings tab in the for-each container you can there set which variable you want to save the files found. Then you can use this variable as the connection string to a flat file connection.

这篇关于SSIS Foreach循环与特定的平面文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆