Advertisement

07.22.2008 at 02:50PM PDT, ID: 23586736
[x]
Attachment Details

Looping through Excel worksheets using SSIS

Asked by CSTX_Analysts in SQL Server 2005, Microsoft Excel Spreadsheet Software

Tags: Microsoft, SQL Server 2005 SSIS

Here is what I am trying to do. I have a single excel spreadsheet that I want to import. The data structure remains the same but the worksheet names changes every so often. I simply need to read the single spreadsheet and no matter the worksheet name import the data.

I have been attempting to do this in SSIS using a foreach container.
 
The format of the foreach container is this:
 
1.Foreach ADO.NET Schema Rowset Enumerator. The connection is set up to the Excel data source and the schema is set to table.
2. The variable mapping is set to use the Sheet Name package variable (this is the same variable I am trying to apply to my Data Flow task) and the index is set to 0.


I am just missing something in the logic of this process. I have been able to loop successfully through multiple Excel workbooks using the foreach file enumerator, but when I try to drill down and do the actual worksheets using the above settings it fails.
Start Free Trial
[+][-]07.22.2008 at 03:34PM PDT, ID: 22064326

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 01:55PM PDT, ID: 22073751

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 01:57PM PDT, ID: 22073772

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:20PM PDT, ID: 22076276

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 06:52AM PDT, ID: 22079056

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2008 at 04:45PM PDT, ID: 22099957

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.28.2008 at 09:03AM PDT, ID: 22104358

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.28.2008 at 09:04AM PDT, ID: 22104364

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, Microsoft Excel Spreadsheet Software
Tags: Microsoft, SQL Server 2005 SSIS
Sign Up Now!
Solution Provided By: CSTX_Analysts
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.29.2008 at 03:58PM PDT, ID: 22116435

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628