dbTalk Databases Forums  

To Execute or Not To Execute

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


Discuss To Execute or Not To Execute in the microsoft.public.sqlserver.dts forum.



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

Default To Execute or Not To Execute - 05-03-2004 , 09:16 PM






I have four files which I need to pick up and process. I have written the active x script to find the files and the execute sql to truncate the table and the connection and the transformation, but I am having trouble figuring out how to make them work together. I want to loop through the files and execute against each one, but it doesn't run the other tasks until after the whole script has completed. I need it to loop, execute, then return. I have it checking the files to see if they are empty so it is only processing the good ones, but then I rename the file to what the connection is looking for and it processes. But, I can't get it to process for each file. I tried to set up 4 different executions, but then there were errors on the ones that were empty. I am pulling my hair out and this should have been done last week. Please help!

Thanks.

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

Default Re: To Execute or Not To Execute - 05-04-2004 , 12:56 AM






Not sure I understand what you are doing but is it anything like this

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

If not then maybe you can explain a bit more about what you need

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"dbases" <dbases (AT) aol (DOT) com> wrote

Quote:
I have four files which I need to pick up and process. I have written the
active x script to find the files and the execute sql to truncate the table
and the connection and the transformation, but I am having trouble figuring
out how to make them work together. I want to loop through the files and
execute against each one, but it doesn't run the other tasks until after the
whole script has completed. I need it to loop, execute, then return. I
have it checking the files to see if they are empty so it is only processing
the good ones, but then I rename the file to what the connection is looking
for and it processes. But, I can't get it to process for each file. I
tried to set up 4 different executions, but then there were errors on the
ones that were empty. I am pulling my hair out and this should have been
done last week. Please help!!
Quote:
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.