Home > Ask the SQL Server Experts > Joe Toscano - Integration Services/Development Questions & Answers > DTS package designed to overwrite extract.xls
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

DTS package designed to overwrite extract.xls

Joe Toscano EXPERT RESPONSE FROM: Joe Toscano

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 16 February 2007
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?

>
EXPERT RESPONSE
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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Joe Toscano - Integration Services/Development
How to convert DTS packages to SSIS and overwrite data
How to migrate DTS to SSIS and deploy SSIS packages
Query to search text in old DTS packages in SQL Server?
Error importing Excel data to SSIS in SQL Server 2005
Delete .bak files automatically with CLR
Displaying a SQL Server database report in Excel
Call triggers in a stored procedure
Stored procedure practices in SQL Server
SQL Server permission to create jobs and schedules in SSIS
Problems with structured exception handling

SQL Server data warehousing/business intelligence
Manage traces in SQL Server 2005 Analysis Services with XMLA commands
Tutorial: SQL Server 2005 Analysis Services
Top 10 SQL Server Integration Services (SSIS) and DTS tips
Open SSIS packages without validation using these SQL properties
How to process SQL Server 2005 Analysis Services for data availability
Export SQL Server data to an Excel file using SSIS and Visual Studio
Five steps to event handlers in SQL Server Integration Services (SSIS)
Workaround to Reporting Services error in SQL Server Express
Optimize SAN setup for improved SQL Server performance
Table partitioning with SQL Server 2005

Microsoft SQL Server
Tuning SQL Server performance via disk arrays and disk partitioning
Should you upgrade to SQL Server 2005 or SQL Server 2008?
SQL Server data conversions from date/time values to character types
Using full-text search for symbols in SQL Server
Monitor database mirroring and replication after a SQL Server upgrade
Basics for working with DATETIME and SMALLDATETIME in SQL Server 2005
How to configure Database Mail in SQL Server 2005 to send mail
Upgrade live applications to SQL Server 2005 for high availability
How to use rank function in SQL Server 2005
SQL Server high availability when upgrading to SQL Server 2005

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
data aggregation  (SearchSQLServer.com)
data preprocessing  (SearchSQLServer.com)
data warehouse  (SearchSQLServer.com)
FileMaker  (SearchSQLServer.com)
GIS  (SearchSQLServer.com)
MOLAP  (SearchSQLServer.com)
pivot table  (SearchSQLServer.com)
Quiz: SQL Server 2000  (SearchSQLServer.com)
SQL  (SearchSQLServer.com)
T-SQL  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts