Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am following an example at the link below:

How to load data from multiple Excel sheets to any destination in SSIS[^]


I have not used Microsoft Jet 4.0 OLE DB Provider as i get a no stable ISAM message. So have used ADO.NET:OLEDB (MS office 12.0 Access Database Engine OLE DB Provider
Extended properties: Excel 12.0 Macro;HDR=YES)

The problem i am having is that with my workbook the worksheet names variable is not updating?

The for each loop has picked up on there being six sheets.

The first sheet being:

Med fit calc Jan 16

The second
Med fit calc Feb 16

etc.

However, the package which loads to a SQL table, loads the first sheet 6 times instead of 6 sheets, one time each. So i am guessing the variable (varSheetName) is not being updated.

I have initialised varSheetName as string with value
Med fit calc Jan 16$

I have also tried renaming sheets to Jan16 etc and the variable as Jan16$

Can anyone please advise?

What I have tried:

I have tried changing sheet names and Providers.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900