如何在 Excel 源的 foreach 循环容器中动态传递 excel 连接字符串?
How to pass the excel connection string dynamically in the foreach loop container for Excel Source?
如何在 Excel 源的 foreach 循环容器中动态传递 excel 连接字符串?
在 Foreach 循环容器中,我将变量设置为表达式/目录。
在 Excel 源代码中,我已将 Excel 连接字符串映射到 Foreach 循环容器中提到的相同变量。
但是,我收到一个错误
This error is thrown by Connections collection when the specific connection element is not found
您可以通过 3 个步骤执行此操作:
- 在 for each 循环容器中,转到变量映射并将循环结果映射到变量中。
- 在 Excel 连接管理器上,转到表达式,将
ExcelFilePath
属性 表达式的值设置为您在 for each 循环中创建的变量。
- 在数据流任务上将
Delay Validation
属性 值更改为 True。
有关详细的分步教程,请查看以下链接:
- Loop through Excel Files and Tables by Using a Foreach Loop Container
- How to read data from multiple Excel files with SQL Server Integration Services
- Loop Through Excel Files in SSIS
- How to loop through Excel files and load them into a database using SSIS package?
如何在 Excel 源的 foreach 循环容器中动态传递 excel 连接字符串?
在 Foreach 循环容器中,我将变量设置为表达式/目录。
在 Excel 源代码中,我已将 Excel 连接字符串映射到 Foreach 循环容器中提到的相同变量。
但是,我收到一个错误
This error is thrown by Connections collection when the specific connection element is not found
您可以通过 3 个步骤执行此操作:
- 在 for each 循环容器中,转到变量映射并将循环结果映射到变量中。
- 在 Excel 连接管理器上,转到表达式,将
ExcelFilePath
属性 表达式的值设置为您在 for each 循环中创建的变量。 - 在数据流任务上将
Delay Validation
属性 值更改为 True。
有关详细的分步教程,请查看以下链接:
- Loop through Excel Files and Tables by Using a Foreach Loop Container
- How to read data from multiple Excel files with SQL Server Integration Services
- Loop Through Excel Files in SSIS
- How to loop through Excel files and load them into a database using SSIS package?