I have an SSIS package that exports data from a table in a SQL Server 2005 database to an Excel spreadsheet. There are 15 sheets in this spreadsheet, and I'm trying to fill in the values ββon one of these sheets.
I have a template file that I cloned to be an export target (a simple file system task). This template file is valid and not corrupted.
Then I have a data flow task that uses SQL Query as a data source. If I look at it, everything will be all right. Then I exclude everything except one of the columns (int data type).
I have an excel data source (which is the target table, as mentioned above) and I am linking them by wrapping one selected column. When I look through, I get the first hint that something is wrong:
An error occurred displaying the preview.
ADDITIONAL INFORMATION:
The index and length must refer to the location within the string.
Parameter Name: length (mscorlib)
When I run the package, it goes fine, reporting that I have 1 line copied to another. When I open the spreadsheet, I get the following error:
File error: data may be lost
However, the spreadsheet is still loading, and when I go to the sheet I'm trying to fill, he created a new column with text from another sheet.
When I try to use the entire column list in the SSIS package, it seems to be extracting data from other areas of the spreadsheet, which makes me think that the process is somehow distorting the spreadsheet.
My initial thought was that it might have been a problem with the service pack not being deployed, but I observed this behavior when installing RTM and SP3 SQL 2005 and got a little stuck.
I would be very grateful to everyone who had similar experience and could help. Thanks