dbTalk Databases Forums  

How to append data by DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to append data by DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Don Walter
 
Posts: n/a

Default How to append data by DTS - 11-08-2003 , 08:08 PM






I need to append multiple text files into a single text
file.
Can I use DTS do this? How to do this kind task by DTS?
Thanks in advance.

-Don

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: How to append data by DTS - 11-08-2003 , 09:35 PM






In article <062101c3a666$5a958810$a001280a (AT) phx (DOT) gbl>, Don Walter
<DW_msg (AT) Yahoo (DOT) com> writes
Quote:
I need to append multiple text files into a single text
file.
Can I use DTS do this? How to do this kind task by DTS?
Thanks in advance.

-Don

DTS cannot do this directly. The simplest way I find to do this is via
the DOS copy command, e.g.

copy file1.txt+file2.txt+file3.txt Results.txt


This could be wrapped in a batch file and called via the Exec Proc
Task.

You could use scripting to read and write the files to one output, but
this would be slower.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.