Importing from Excel *** with unknown name
- From: Soren <saa@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 00:13:25 -0800 (PST)
I receive an Excel file with a lot of data every day, and I have build
a simple import SSIS package which also takes care of som
transformations etc.
The people who send me the file apparently use different setup on
their computers, meaning that some use Englsh MS Excel, and others use
Danish MS Excel. This results in the problem, that sometimes the first
worksheet is named Sheet1, and sometimes it is named Ark1 (Danish for
Sheet1).
The Excel Source in the Dataflow task has to have a name of the ***,
so every once in a while the job fails, and I have to open the Excel
file and rename first ***.
Is there any way that I can read the sheetname, or maybe use an "OR"
statement, or maybe rename the sheetname at first?
Best regards.
Soren.
Btw.: I have build the package to loop through all files, if more than
one file is sent. Therefore my Excel Connection Manager is set up with
a connectionstring= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
@[User::Filnavn] + ";Extended Properties=\"Excel 8.0;HDR=Yes\""
.
- Follow-Ups:
- Re: Importing from Excel *** with unknown name
- From: Soren
- Re: Importing from Excel *** with unknown name
- Prev by Date: Calling an external sub dynamically.
- Next by Date: Re: Importing from Excel *** with unknown name
- Previous by thread: Calling an external sub dynamically.
- Next by thread: Re: Importing from Excel *** with unknown name
- Index(es):