﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / Can I use transactions for non database related control flow tasks / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 11:01:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Can I use transactions for non database related control flow tasks</title><link>http://www.sqlservercentral.com/Forums/Topic1422165-364-1.aspx</link><description>That's the right way to begin, I think. Setting the TransactionOption to Required on the container will cause the container to start a transaction. Now you should set TransactionOption to Supported on the tasks within the container, so they will participate in the container's transaction.</description><pubDate>Thu, 21 Feb 2013 09:14:27 GMT</pubDate><dc:creator>mthurber</dc:creator></item><item><title>Can I use transactions for non database related control flow tasks</title><link>http://www.sqlservercentral.com/Forums/Topic1422165-364-1.aspx</link><description>Guys,I have a package that has two tasks.  The first is an SQL task which updates two tables (batch headers and batch lines) with some details of an extract file (filename, status etc..)The second is a DataFlow task that takes these records and generates the file oleSource to flatfileDestinationThe testers asked me what happens if the file fails to write (lets say that for some reason the target path is not available; folder is wrongly named or remote server is off-line)I have wrapped the two tasks in a Sequence container and set TransactionOption to Required.  [The package doesn't run because MSDTC is not active on the server but that is a separate issue. ]Will this work within a transaction or do I need a different approach (the alternative is to write additional steps to undo the update if the dataflow task fails, but this takes more work for something which [strike]will[/strike] should never happen)</description><pubDate>Wed, 20 Feb 2013 09:54:42 GMT</pubDate><dc:creator>aaron.reese</dc:creator></item></channel></rss>