dbTalk Databases Forums  

Are Loops possible in DTS Work Flows?

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


Discuss Are Loops possible in DTS Work Flows? in the microsoft.public.sqlserver.dts forum.



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

Default Are Loops possible in DTS Work Flows? - 09-17-2004 , 03:51 PM






I'm ftp'ing a set of csv files from a unix workstation to a cache directory
on the local SQL Server. The file names are unknown since the names contain
an arbitrary time of when they are generated on the Unix station. I've
created an ActiveX script task that searches the cache directory and sets the
datasource of a text file (source) connection to the file name. I then use a
transform data task to put the data in a SQL Server table. The problem is
that I may have multiple files that I need to import into the table. Is it
possible to loop back from the SQL Server destination connection to the
ActiveX script to continue loading csv files until none are left?

The flow I desire looks like this:

ActiveX Script----on success--->Text File Data (Source)----->

transform data task------>SQL Server Connection----->ActiveX Script (back to
beginning)


I've tried the above, but there is no execution of any of the steps.

Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: Are Loops possible in DTS Work Flows? - 09-18-2004 , 01:17 AM






lookat the www.sqldts.com web site
there is the solution

"jkiffer" <jkiffer (AT) discussions (DOT) microsoft.com> a écrit dans le message de
news: 50F053AD-84A6-460B-B650-7F2DB3DF4735...soft (DOT) com...
Quote:
I'm ftp'ing a set of csv files from a unix workstation to a cache
directory
on the local SQL Server. The file names are unknown since the names
contain
an arbitrary time of when they are generated on the Unix station. I've
created an ActiveX script task that searches the cache directory and sets
the
datasource of a text file (source) connection to the file name. I then
use a
transform data task to put the data in a SQL Server table. The problem is
that I may have multiple files that I need to import into the table. Is
it
possible to loop back from the SQL Server destination connection to the
ActiveX script to continue loading csv files until none are left?

The flow I desire looks like this:

ActiveX Script----on success--->Text File Data (Source)-----

transform data task------>SQL Server Connection----->ActiveX Script (back
to
beginning)


I've tried the above, but there is no execution of any of the steps.



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

Default Re: Are Loops possible in DTS Work Flows? - 09-18-2004 , 05:40 AM



In article <#689VcUnEHA.324 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Jéjé wrote:
Quote:
lookat the www.sqldts.com web site
there is the solution

"jkiffer" <jkiffer (AT) discussions (DOT) microsoft.com> a écrit dans le message de
news: 50F053AD-84A6-460B-B650-7F2DB3DF4735...soft (DOT) com...
I'm ftp'ing a set of csv files from a unix workstation to a cache
directory
on the local SQL Server. The file names are unknown since the names
contain
an arbitrary time of when they are generated on the Unix station. I've
created an ActiveX script task that searches the cache directory and sets
the
datasource of a text file (source) connection to the file name. I then
use a
transform data task to put the data in a SQL Server table. The problem is
that I may have multiple files that I need to import into the table. Is
it
possible to loop back from the SQL Server destination connection to the
ActiveX script to continue loading csv files until none are left?

The flow I desire looks like this:

ActiveX Script----on success--->Text File Data (Source)-----

transform data task------>SQL Server Connection----->ActiveX Script (back
to
beginning)


I've tried the above, but there is no execution of any of the steps.

More specifically

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know





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.