I'm using an SSIS package (MS Visual Studio 2017) to import an Excel spreadsheet (97-2003 Workbook) into a table (SQL Server Management Studio 2017). The import needs to skip over the first four rows because the column headings start on row 4. Here is an
example:
Image may be NSFW.
Clik here to view.
I use a SQL script to skip the first four rows in the spreadsheet:
SELECT F1,F2,F3,F4,F5,DATE() AS InsertDate FROM [Jobs$] WHERE F5 IS NOT NULL AND F5 <> "Service Address"This code works in the SQL Server Import and Export Wizard but when I try to use it to create an Excel Source in a Visual Studio SSIS package, I get the following error message:
Image may be NSFW.
Clik here to view.
Is there a fix for this?