Reputation: 305
I have a Excel workbook with 2 Sheets: testdata1
and testdata2
.
The data of a sheet looks like this:
As you see, some column header like average Test
and sortnumber
are not on the same row with other column header ( testvalue1
, testvalue2
..)
I want to load the data of Sheets testdata1
and testdata2
to a table in SQL Server.
Expected Output
The result I hope to see looks like this
Can you please help me how to do it?
Upvotes: 2
Views: 1750
Reputation: 37313
You have to create a dynamic SQL command
that read from the first line after the headers, and to fix the columns name in the Excel Source
, following these steps:
Delay Validation
property to true)You can follow my answer Importing excel files having variable headers - which is a similar case - to get more details.
Upvotes: 1