Hello,
I have a DTS package that writes to a temporary excel file reiteratively. The package dumps straight table data from a SQL Server source to this excel destination file. Then I have a process that will copy, rename file and paste the file to a separate location.
Each time I write to the excel file I execute the "DROP Table <tablename>" against the Excel Datasource to clear the sheet. Subsequently, I execute the CREATE Table to initialize the table in the Excel workbook.
The problem is that as it ticks through the temporary file size grows and grows and grows despite being cleared on each run. If you open the file in Excel and re-save it the file shrinks to its appropriate size.
Any tips on this?
Thanks
Jim
I have a DTS package that writes to a temporary excel file reiteratively. The package dumps straight table data from a SQL Server source to this excel destination file. Then I have a process that will copy, rename file and paste the file to a separate location.
Each time I write to the excel file I execute the "DROP Table <tablename>" against the Excel Datasource to clear the sheet. Subsequently, I execute the CREATE Table to initialize the table in the Excel workbook.
The problem is that as it ticks through the temporary file size grows and grows and grows despite being cleared on each run. If you open the file in Excel and re-save it the file shrinks to its appropriate size.
Any tips on this?
Thanks
Jim