<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to create an autonomous transaction in SQL Server 2008</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx</link><description>I have been asked by many customers and partners, especially those migrating from Oracle, this question: how to create an autonomous transaction in SQL Server? It turns out to be a tricky thing to do since SQL Server doesn't have built-in autonomous transaction</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title> &amp;raquo; How to create an autonomous transaction in SQL Server 2008 | SQL Server Feeds</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx#8890955</link><pubDate>Sun, 24 Aug 2008 04:00:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8890955</guid><dc:creator> &amp;raquo; How to create an autonomous transaction in SQL Server 2008 | SQL Server Feeds</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.sqlserverfeeds.com/969/how-to-create-an-autonomous-transaction-in-sql-server-2008-2/"&gt;http://www.sqlserverfeeds.com/969/how-to-create-an-autonomous-transaction-in-sql-server-2008-2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Emulating autonomous transactions in MS SQL Server</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx#9202141</link><pubDate>Fri, 12 Dec 2008 16:25:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9202141</guid><dc:creator>Mil's unrated ramblings</dc:creator><description>&lt;p&gt;Emulating autonomous transactions in MS SQL Server&lt;/p&gt;
</description></item><item><title>re: How to create an autonomous transaction in SQL Server 2008</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx#9459710</link><pubDate>Thu, 05 Mar 2009 16:37:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9459710</guid><dc:creator>msolcia</dc:creator><description>&lt;p&gt;Good afternoon,&lt;/p&gt;
&lt;p&gt;I'm very interested to the SQLCLR sample and script you mentioned in the post. &lt;/p&gt;
&lt;p&gt;Currently for logging purpose inside a Stored Procedure, I'm using the 2nd option (&amp;quot;Using table variable to save data within transaction.&amp;quot;). A disadvantage of this solution is that I can dump the table-variable only after the end of the transaction. This doesn't allow to use the log as a trace of the execution (answer to the question: at which point of SP the execution is?) &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your posts&lt;/p&gt;
</description></item><item><title>re: How to create an autonomous transaction in SQL Server 2008</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx#9879108</link><pubDate>Fri, 21 Aug 2009 21:55:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9879108</guid><dc:creator>tomponent</dc:creator><description>&lt;p&gt;I think you could simply use SAVE TRANSACTION intelligently without having to worry about trying to enlist a transaction in a distributed transaction as in:&lt;/p&gt;
&lt;p&gt;BEGIN TRAN OUTER&lt;/p&gt;
&lt;p&gt;BEGIN TRAN INNER1&lt;/p&gt;
&lt;p&gt;SAVE TRAN INNER1&lt;/p&gt;
&lt;p&gt; --code&lt;/p&gt;
&lt;p&gt;-- choose to commit/ rollback inner1 or not&lt;/p&gt;
&lt;p&gt;BEGIN TRAN INNER2&lt;/p&gt;
&lt;p&gt;SAVE TRAN INNER2&lt;/p&gt;
&lt;p&gt;-- code&lt;/p&gt;
&lt;p&gt;-- choose to commit/rollback inner2 or not&lt;/p&gt;
&lt;p&gt;COMMIT OUTER &lt;/p&gt;
</description></item><item><title>re: How to create an autonomous transaction in SQL Server 2008</title><link>http://blogs.msdn.com/sqlprogrammability/archive/2008/08/22/how-to-create-an-autonomous-transaction-in-sql-server-2008.aspx#9879126</link><pubDate>Fri, 21 Aug 2009 22:10:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9879126</guid><dc:creator>ab5sr</dc:creator><description>&lt;p&gt;Well, that might work, Tom, but I still contend that his placement of the ROLLBACK TRAN OuterTran is in the wrong place; &amp;nbsp;putting it along with the COMMIT TRAN OuterTran with a check for the error works perfectly for me in this instance...&lt;/p&gt;
&lt;p&gt;Lee Everest&lt;/p&gt;
</description></item></channel></rss>