dbTalk Databases Forums  

DTS- Add global varible's value to text file

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


Discuss DTS- Add global varible's value to text file in the microsoft.public.sqlserver.dts forum.



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

Default DTS- Add global varible's value to text file - 09-07-2005 , 06:21 PM






Hi, I have a DTS which has a connection, 3 destination text files and a
Process execution job which runs a simple batch file to concatenate this
3 files into a 4th text file "Endeud.txt". I added an activeX command
Job to input a date which is saved in a global variable. I need to add
this date at the end of the Endeud.txt file (The date would
be the last line of Endeud.txt. How can I do this?




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

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS- Add global varible's value to text file - 09-07-2005 , 06:48 PM






Best way would be to do this in an Active Script task after the "Concat"
task. You can use the FileSystemObject to do this.

Allan

"Marcela Cure" <m_cure (AT) hotmail (DOT) com> wrote


Quote:
Hi, I have a DTS which has a connection, 3 destination text files and a
Process execution job which runs a simple batch file to concatenate this
3 files into a 4th text file "Endeud.txt". I added an activeX command
Job to input a date which is saved in a global variable. I need to add
this date at the end of the Endeud.txt file (The date would
be the last line of Endeud.txt. How can I do this?




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


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

Default Re: DTS- Add global varible's value to text file - 09-08-2005 , 09:31 AM



How can I concatenate this varible using the FSO?



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

Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS- Add global varible's value to text file - 09-09-2005 , 12:13 AM



You do not concatenate it per se, after you have finished doing your
export you can write what is essentially the footer to the text file
using FSO in an Active Script task.

Something similar to

http://msdn.microsoft.com/library/de...filesystem.asp


Allan


"Marcela Cure" <m_cure (AT) hotmail (DOT) com> wrote


Quote:
How can I concatenate this varible using the FSO?



*** Sent via Developersdex http://www.developersdex.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.