dbTalk Databases Forums  

export and append

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


Discuss export and append in the microsoft.public.sqlserver.dts forum.



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

Default export and append - 11-06-2003 , 01:19 PM






I am looking for information on how to use DTS to export a
text file and to have it append to this text file when the
DTS package is run in the future. Any information is
greatly appreciated. Thank you.

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

Default Re: export and append - 11-06-2003 , 01:33 PM






In article <007f01c3a49a$eafca2d0$a601280a (AT) phx (DOT) gbl>, Gina
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
I am looking for information on how to use DTS to export a
text file and to have it append to this text file when the
DTS package is run in the future. Any information is
greatly appreciated. Thank you.
I'm afraid the text file provider does not support this behaviour.

The solution I use is to create the two files and then use a DOS copy
command to concatenate the two files, e.g.

copy FileA.txt+FileB.txt Results.txt

--
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
  #3  
Old   
Tim Harris
 
Posts: n/a

Default Re: export and append - 11-07-2003 , 02:49 PM



Sometimes I don't get good results using the copy command to append two
files. In those situations I can sometimes get by with redirecting the
output of FileB.txt to append to FileA.txt. e.g. TYPE FileB.txt >>
FileA.txt


"Darren Green" <darren.green (AT) reply-to-newsgroup-only (DOT) uk.com> wrote in
message news:ayhy1KKbIqq$Ew1H (AT) sqldts (DOT) com...
Quote:
In article <007f01c3a49a$eafca2d0$a601280a (AT) phx (DOT) gbl>, Gina
anonymous (AT) discussions (DOT) microsoft.com> writes
I am looking for information on how to use DTS to export a
text file and to have it append to this text file when the
DTS package is run in the future. Any information is
greatly appreciated. Thank you.

I'm afraid the text file provider does not support this behaviour.

The solution I use is to create the two files and then use a DOS copy
command to concatenate the two files, e.g.

copy FileA.txt+FileB.txt Results.txt

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