Solved

ssis transactions - atomic

Posted on 2011-02-16
4
632 Views
Last Modified: 2013-11-10
SSIS package has many tasks. For example, let's say the 7th task had error. Does SSIS package behave atomic, in the sense, that all the update/delete in the first 6 tasks will be rolled back?

thanks
0
Comment
Question by:anushahanna
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 333 total points
ID: 34910599
Not really but you can change all these from the package configurations where for instance you will run only one step at a time (not default I believe 4 in parralell) and fail the package on task failure. there are many properties that you can change and make sure you put the right workflow/decission making in place. Also I believe you could change the isolation level per task to make it atomic in its own if lets say you need to run multiple SP's in a task.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34910631
right now, there is extra configurations for this, and all tasks are linked together. so by default, will they all stay together in an event of failure?
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 333 total points
ID: 34910755

They will <<stay together in an event of failure>> IF << there is extra configurations for this, and all tasks are linked together >> but I don't think default SSIS configurable ensure ATOMIC package execution. If one task completed that work will be committed in your database and not rolled back if package fails.
Let’s say you have a DTSX running 10 tasks one at a time linked on success and task 3 fails generating DRTSX package failure. Whatever you had in step 1 and 2 is already done and committed in your DB unless EXPLICETELY coded/configured to rollback everything in case of failure.
0
 
LVL 30

Assisted Solution

by:Reza Rad
Reza Rad earned 167 total points
ID: 34915145
so by default, will they all stay together in an event of failure?
No,

you should set Transaction Option for this,
by default SSIS will fail on every task which caused failure and do not rollback anything.

But you can set TransactionOption as "Required" on the package on a sequence container which has your all atomic tasks inside.also you need to set FailPackageOnFailure on all tasks which is in transaction category.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now