本文介绍了如何在 SSIS 中为 Excel 文件设置动态文件路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文件名根据月份变化.每个月你都有一个新文件.
The name of the file changes based on months. Every month you have a new file.
I:\Test\Data_201303.xlsx
如何设置可以使用可变文件路径的连接管理器?
How do I set up a connection manager that will work with variable file paths?
推荐答案
您需要为 ServerName
或 ExcelFilePath
设置表达式code> 属性使用 SSIS 包变量动态修改 Excel 连接管理器的
ConnectionString
.
You need to set the expression for the
ServerName
or ExcelFilePath
property to modify ConnectionString
of Excel connection manager dynamically using an SSIS package variable.
以下是一些处理循环多个 Excel 文件的 SO 答案:
Here are some SO answers that deal with looping multiple Excel files :
如何使用 SSIS 包循环遍历 Excel 文件并将它们加载到数据库中?
如何导入将不同名称和相同架构的 Excel 文件放入数据库?
这篇关于如何在 SSIS 中为 Excel 文件设置动态文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!