Solved

ssis transactions - atomic

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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.

726 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