I'm a business intelligence development intern, so please forgive me if I am not as versed as some in SQL or the Microsoft BI Stack.
I'm trying to import data from an Excel file (.xls) to an SQL Server database table, and for some reason the connection manager is ignoring the last column of my data entirely.
To make matters stranger, SSIS DOES read the data if I try to set up the connection manager within SSIS while the Excel file is open in Excel. (I think I did this unintentionally at first, and was surprised by the result.)
Here is a preview of data without the file open in Excel:
And a preview of data with the file open before setting up the connection manager in SSIS:
Both of these depict the end of the data within the file, but for some reason as you can see, the 'Zone' column is omitted in the first data preview.
Steps I've tried so far:
- Converting to a .csv file using a script task
- Using an ADO.Net source and reading the excel data that way
- Using an SQL command to view data rather than select from table or sheet
- Changing the OpenRowset property to specify columns
Specifics about the source files:
- First 3 rows of data are empty (except an image)
- Row 4 contains header data
- 'Zone' column is formatted as general, as is every other column that does not contain a date
If anyone has any ideas or suggestions, I would greatly appreciate the feedback.
Thanks!
SELECT * FROM [MyWorksheet$B5:J100]
? – MiguelH Nov 30 '15 at 15:06