You are here: Re: DTS- Add global varible's value to text file « MsSQL Server « IT news, forums, messages
Re: DTS- Add global varible's value to text file

Posted by Simon Hayes on 09/08/05 02:38

"Marce" <m_cure@hotmail.com> wrote in message
news:1126109742.578214.98180@g49g2000cwa.googlegroups.com...
> 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?
>

The best way is probably an ActiveX step which opens the file and appends
the date. You could use VBScript and the Scripting.FileSystemObject object,
for example. Or if you want to use a process execution step, then this shell
command would work:

echo 20050908 >> Endeud.txt

But you would still need to set the ProcessCommandLine attribute of the task
based on the global variable, so it would probably be easier to just do the
whole thing in ActiveX.

Simon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация