Solved

ssis transactions - atomic

Posted on 2011-02-16
4
652 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

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 40

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

733 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