Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


can I use transactions to rollback only the current batch


can I use transactions to rollback only the current batch

Author
Message
jjr.123
jjr.123
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 116
I have a package with design as below

1.I have DFT to load a Total_table with 90k records
2.it is connected to a for loop container-- to process the 90k reocrds in a batch of 10k

3. In FLC 1st I load Batch_table with 10k from Total_table

4. inside FLC container , sequence container is added , which is connected by the batch load task

5. within sequence container {six (DFT1,DFT2,DFT3,DFT4,DFT5,DFT6) DFTs connected in sequence , which populate individual table using the Batch_table 10k records.}

If sequnce container sucessfull then update the Total_table as processed (0 to 1) for the current 10k batch

if the container fails i have a DFT to delete the current batch records from all the table using lookup.


then for loop restarts after sucessfull batch load and repeats until FLC evaluates 'recordsprocessed>=90k'

then a successmail.
** can I use transactions to rollback only the current batch?
** how can i set the FLC to continue with next , even after a failed batch

** Here I want get the records count in all six DFTs to a custom_log table/Send mail task. As the package is running in a batch process I rowcount sould be sum of

[rowcount from each batch].

After the batch process is complete i should get notified about the rocords processed in each table.

please suggest

Thanks in advance.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search