开发者

How to get SSIS to import an Excel file with non-default Worksheet name?

开发者 https://www.devze.com 2023-03-30 15:54 出处:网络
I have an SSIS package that loops through a folder and imports all the excel files into an OLEDB destination. The package works fine as long as all the worksheet names are set to default. It br开发者_

I have an SSIS package that loops through a folder and imports all the excel files into an OLEDB destination. The package works fine as long as all the worksheet names are set to default. It br开发者_运维技巧eaks if the worksheet name is different. There are a couple of examples online on how to import multiple worksheets. How do I get SSIS to import an Excel file with non-default Worksheet name?


Check out Programming Foreach Loop Container – Enumerating Excel Sheets. It uses a Foreach Loop container to iterate over whatever sheets are in the workbook.


You can set OpenRowSet property of Excel Source. Something like "MyNotDefaultWorksheet". You can also set this property from package variable and then set this variable programmatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消