Solved

ssis transactions - atomic

Posted on 2011-02-16
4
627 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

705 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