dbTalk Databases Forums  

DTS Export to text file - Can you 'append'?

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


Discuss DTS Export to text file - Can you 'append'? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
markbouchard@gmail.com
 
Posts: n/a

Default DTS Export to text file - Can you 'append'? - 03-15-2006 , 12:23 PM






Hello,

I'm trying to set up a scheduled DTS task to export a table of mine. I
would like this export to append to a comma separated text file. That
way, if i set up the backup to occur daily, i can move the file each
day and have a daily set of the entries into that db table.

I see the "Append rows to destination table" option, however, it is
always disabled for me. I've tried both the "Copy tables" and the
"Query" options to build up what is being exported. (ideally i'd be
able to do this with the query option).

Is it possible to export to a comma separated file and have it append?
(aka, get that option enabled)

Thanks


Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: DTS Export to text file - Can you 'append'? - 03-15-2006 , 09:10 PM






There isn't a direct way to append. But you can create a
second file for the export and use a DOS copy command to
combine the two files -
copy FirstFile.txt+SecondFile.txt NewFile.txt

-Sue

On 15 Mar 2006 10:23:43 -0800, markbouchard (AT) gmail (DOT) com wrote:

Quote:
Hello,

I'm trying to set up a scheduled DTS task to export a table of mine. I
would like this export to append to a comma separated text file. That
way, if i set up the backup to occur daily, i can move the file each
day and have a daily set of the entries into that db table.

I see the "Append rows to destination table" option, however, it is
always disabled for me. I've tried both the "Copy tables" and the
"Query" options to build up what is being exported. (ideally i'd be
able to do this with the query option).

Is it possible to export to a comma separated file and have it append?
(aka, get that option enabled)

Thanks


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.