dbTalk Databases Forums  

How to concatenate 2 text files into 1 text file using DTS

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


Discuss How to concatenate 2 text files into 1 text file using DTS in the microsoft.public.sqlserver.dts forum.



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

Default How to concatenate 2 text files into 1 text file using DTS - 09-02-2005 , 04:05 PM






I have a DTS with one conection and two destination text files. I need
to transform this two text files into one text file (first one files
date and under the other files data)

How can I do this?



*** Sent via Developersdex http://www.developersdex.com ***

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

Default Re: How to concatenate 2 text files into 1 text file using DTS - 09-04-2005 , 11:11 AM






Marcela Cure wrote:
Quote:
I have a DTS with one conection and two destination text files. I need
to transform this two text files into one text file (first one files
date and under the other files data)

How can I do this?



*** Sent via Developersdex http://www.developersdex.com ***
Run the package twice, or concatenate the files first, and process the
result. You can concatenate with the DOS copy command e.g.

copy file1.txt+file2.txt file3.txt


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com


Reply With Quote
  #3  
Old   
Marcela Cure
 
Posts: n/a

Default Re: How to concatenate 2 text files into 1 text file using DTS - 09-05-2005 , 09:19 AM



I am trying to concatenate (its not 2 but 3 files) the files using a
batch file which I tried and worked. But the problem now is where two
put it in the DTS. I have one Connection and three destination text
files. After they have all completed converting into text files the
batch (with execution process job) should run, how can I put the batch
to run after the completion of the three jobs?



*** Sent via Developersdex http://www.developersdex.com ***

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

Default Re: How to concatenate 2 text files into 1 text file using DTS - 09-07-2005 , 05:02 PM



Marcela Cure wrote:
Quote:
I am trying to concatenate (its not 2 but 3 files) the files using a
batch file which I tried and worked. But the problem now is where two
put it in the DTS. I have one Connection and three destination text
files. After they have all completed converting into text files the
batch (with execution process job) should run, how can I put the batch
to run after the completion of the three jobs?



*** Sent via Developersdex http://www.developersdex.com ***
Use Workflow constraints akey precedence constraints to ensure the order
of execution. Use On Success from each DataPump to the Exec Process Task.

Also ensure you set Close Connection on completion on the DataPump task,
right-click - Workflow Properties - Options.

--
Darren Green
http://www.sqldts.com
http://www.sqlis.com


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.