Hi All,
I have been trying to load the data from an Excel file to SQL Server table using script task in SSIS since my data header is at nth row. This is the process I am following to load the data.
Excel --> Data table --> SQL Server table
My data in the file looks like this.
SAMPLE1 | |
SAMPLE2 | |
TESTDATE1 | TESTDATE2 |
06/07/2016 | 06/07/2016 |
06/28/2016 | 09/06/2016 |
08/11/2016 | 09/03/2016 |
07/18/2016 | 07/28/2016 |
08/07/2016 | 08/22/2016 |
08/29/2016 | 08/29/2016 |
When I am trying transfer data table to SQL Server table, It is returning data type conversion error as my destination column is of DateTime data type. I have tried with all the IMEX options, but no use. In the data table, I can see the data format is good as the date. I cannot directly map the column to the specific data type in script task as it is dynamic and looping through multiple sheets.
Can anyone help me and provide your valuable suggestions, please?
Thanks & Regards,
Naresh Bandi.