dbTalk Databases Forums  

DTS Looping and Join Transaction If Present

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


Discuss DTS Looping and Join Transaction If Present in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wm. Scott Miller
 
Posts: n/a

Default DTS Looping and Join Transaction If Present - 11-10-2005 , 09:39 AM






Hello All,

I've got a loop (See http://www.sqldts.com/default.aspx?246) that loops
through a set of files downloaded from an FTP site. As I said in my
previous question, if the task fails to import the file, I've got to prevent
insertion of a file row in my file table so that when I manually fix the
file, I don't have to manually fix the DB also to allow the file to
reprocess (files inserted in the DB are blocked from processing again). So
my question is as follows:

If I insert an Execute SQL Task (inserts file row and records foreign key
for use in data pump) between "Begin Loop" and "Text File (Source)" and set
it and the data pump (#5) to join the current transaction and set the data
pump to commit or rollback based on the data pump's result, will this
accomplish my goal and reset properly for the next file (each file should be
in a separate transaction)?

Anyone see any problems?

Thanks,
Scott



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.