How to read excel sheet name Dynamically in SSIS .and use it in excel source.

2024-08-13T10:19:22.03+00:00

How to read excel sheet name Dynamically in SSIS .and use it in excel source.

Earlier I was using OleDbConnection

connection = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + excelFilepath + ";Extended Properties="EXCEL 12.0 XML;HDR=YES;IMEX=1"");

I have migrated my application to Visual studio 2022 and here

connection.Open();

raising an exception .

Please give a solution how to read excel sheet name Dynamically in SSIS

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,959 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,590 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 37,446 Reputation points
    2024-08-14T01:48:02.8533333+00:00

    Hi @LOUIS Lini (SAFRAN ENGINEERING SERVICES)

    You may need to use Script Task to do that.

    Please refer to below links for the steps.

    Dynamic Sheet Name in SSIS Excel Spreadsheet imports

    Import data from Excel using SSIS without knowing sheet name

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.