SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Overwriting Excel File with SSIS package


Overwriting Excel File with SSIS package

Author
Message
lduvall
lduvall
Old Hand
Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)Old Hand (364 reputation)

Group: General Forum Members
Points: 364 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?
vamsi.karusala
vamsi.karusala
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 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
swapnajeet
swapnajeet
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 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?
WolfMure
WolfMure
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 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.
Mike McGinnis
Mike McGinnis
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 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.
mugilanoracle
mugilanoracle
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 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.
MMartin1
MMartin1
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2717 Visits: 2031
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search