Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««1234

Overwriting Excel File with SSIS package Expand / Collapse
Author
Message
Posted Wednesday, September 15, 2010 8:17 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 17, 2016 1:55 PM
Points: 148, Visits: 396
pduplessis-723389 (6/18/2008)
Consider using a drop table/create table command, which will effectively delete the worksheet and replace this with a new one.

~PD


I'm having the same issue and would like to try the solution you've suggested. What type of Control Flow Item should I use to try the drop/create for the Excel worksheet? I can't use the "SQL Exectute Task," can I?
Post #986291
Posted Friday, June 17, 2011 4:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 6, 2012 2:16 AM
Points: 1, Visits: 114
Hi folks can you breefly explain me to export data to multiple sheets and every time of running package it gets refresh all sheets with new data
Post #1127215
Posted Saturday, December 3, 2011 10:39 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, December 4, 2011 12:23 AM
Points: 1, Visits: 3
As suggested in the blog i have created my template Excel file in a certain location and was able to copy it to a destination folder using a file system task.I now want to populate the copied excel sheet with data from my stored procedure.I would greatly appreciate if some can help me with the steps that i need to do to achieve the task.As the copied excel sheet is getting created when i run the package how to set it as a path for my excel destination?
Post #1215933
Posted Monday, July 15, 2013 1:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, October 6, 2015 3:07 PM
Points: 1, Visits: 67
There is a quick way to do this but it involves editing your dtsx file directly. Make a backup copy of your package then open the original with a text editor (ie. notepad). Do a find for the word "Overwrite". Go to the end of the line and change the property value to true. This works for me.
Post #1473864
Posted Saturday, February 6, 2016 8:18 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, February 6, 2016 8:41 PM
Points: 2, Visits: 6
What version of BIDS, Excel are you using? What version of SQL Server? I'm on SQL Server 2008 r2, Excel 2013 - I can't get this to work. I was able to Delete the content in the XLS - but then when the control flow tries to write output from SQL to the Excel destination (previously written to that same xls spreadsheet - but now deleted the tab content in a SQL Task) - the writing to Excel FAILS -- as the Excel "TABLE"/metadata/header row are now gone.
Post #1759093
Posted Tuesday, November 29, 2016 9:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, December 1, 2016 10:19 PM
Points: 1, Visits: 6
hi,
please tell me how to export sql server single table into multiple excel sheets in single Excel file using SSIS package.(ex-have region column in source table and have to export data in destination as different sheets name like region1,region2 in same excel file.based on region column value it has to write the value in region1 and region2 and so on ..) also for each run by everyday new data should be inserted and old data has to be truncated.
Post #1838718
Posted Wednesday, November 30, 2016 10:25 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 7:30 PM
Points: 994, Visits: 1,935
mugilanoracle (11/29/2016)
hi,
please tell me how to export sql server single table into multiple excel sheets in single Excel file using SSIS package.(ex-have region column in source table and have to export data in destination as different sheets name like region1,region2 in same excel file.based on region column value it has to write the value in region1 and region2 and so on ..) also for each run by everyday new data should be inserted and old data has to be truncated.


Notice that this thread is years old. And since your question is not the same as what the OP asked I would suggest starting a new post to keep things cleaner. Especially if after all the replies here you were not able to find a solution.


----------------------------------------------------
How to post forum questions to get the best help
Post #1839038
« Prev Topic | Next Topic »

Add to briefcase «««1234

Permissions Expand / Collapse