Q
Problem solve Get help with specific problems with your technologies, process and projects.

DTS package designed to overwrite extract.xls

I have a DTS package that produces an output file called extract.xls. Every time the package runs, the output is appended to the extract.xls file. How can I design the DTS package to overwrite or delete the extract.xls file, before the output is produced?

I have a DTS package that produces an output file called extract.xls. Every time the package runs, the output is appended to the extract.xls file. How can I design the DTS package to overwrite or delete the extract.xls file, before the output is produced?
You can easily delete a file using a script command. See the following example at www.sqldts.com.

You may consider creating a very simple script task that performs the delete. Then have your DTS package flow move to the data pump section when the delete succeeds.

This was last published in February 2007

Dig Deeper on Microsoft SQL Server Integration Services (SSIS)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close