Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS overwrite vs append

Status
Not open for further replies.

Brit

Programmer
May 15, 2001
15
US
I have a text file with data that needs to replace all the data in my SQL 7 table. I have created a DTS package but when I run, the text file data is appended to the table. How do I clear the table and fill rather than append?

thanks for your help.
 
Hi,

Create a SQL task to truncate existing records in the table and run your load task to load the records in your text file.

I hope this helps.
 

You can add the truncate as a step in the existing package. Create the workflow from the truncdate to the append indicating the append step should only run when the truncate is succesfully executed. Terry L. Broadbent
Life would be easier if I had the source code. -Anonymous
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top