<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.pluralsight.com/community/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>Jim Johnson's Blog - All Comments</title><link>http://www.pluralsight.com/community/blogs/jimjohn/default.aspx</link><description>Adventures in Atomicity</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#56110</link><pubDate>Fri, 09 Jan 2009 16:26:10 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56110</guid><dc:creator>jim-johnson</dc:creator><description>&lt;p&gt;My understanding is that your question was handled offline by the transactions team. &amp;nbsp;In the interest of sharing, here&amp;#39;s my quick answers:&lt;/p&gt;
&lt;p&gt;First, in order to get the mapping to work, you&amp;#39;ll need to use the -tmMappingSet feature, define mappings for both SQL instances. &amp;nbsp;Roughly, the commands will be of the form:&lt;/p&gt;
&lt;p&gt;msdtc –tmMappingSet –name MyMapping –service SQL$&amp;lt;xxxx&amp;gt; -clusterResource &amp;lt;cluster resource name&amp;gt;&lt;/p&gt;
&lt;p&gt;where SQL$&amp;lt;xxxx&amp;gt; is the SQL service instance for the particular server group.&lt;/p&gt;
&lt;p&gt;The only way I know to tell which resource is being used by SQL is to use the MSDTC UI to see which one gets activity when you try a transaction against a particular SQL instance.&lt;/p&gt;
&lt;p&gt;Finally, since MSDTC1 is a cluster resource in the SQL1 cluster group, if it fails, the group fails and restarts. &amp;nbsp;So, if SQL1 is running, you should be able to assume MSDTC1 is running as well.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Jim.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56110" width="1" height="1"&gt;</description></item><item><title>re: Understanding nested transaction scopes</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2005/06/18/11451.aspx#56109</link><pubDate>Fri, 09 Jan 2009 16:19:39 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56109</guid><dc:creator>jim-johnson</dc:creator><description>&lt;p&gt;In the second example transaction &amp;#39;b&amp;#39; is created by TransactionScope &amp;#39;t&amp;#39;, and committed at the end of that TransactionScope. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;TransactionScopes &amp;nbsp;&amp;#39;s&amp;#39; &amp;amp; &amp;#39;u&amp;#39; operate on transaction &amp;#39;a&amp;#39;, which aborts at the end of TransactionScope &amp;#39;u&amp;#39;.&lt;/p&gt;
&lt;p&gt;Jim.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56109" width="1" height="1"&gt;</description></item><item><title>re: Understanding nested transaction scopes</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2005/06/18/11451.aspx#56105</link><pubDate>Fri, 09 Jan 2009 07:36:01 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56105</guid><dc:creator>peter</dc:creator><description>&lt;p&gt;Hi, the acticle is much helpful. Thanks.&lt;/p&gt;
&lt;p&gt;But I am still confused with the second example. &lt;/p&gt;
&lt;p&gt;will transaction &amp;#39;b&amp;#39;(transactionscope &amp;#39;u&amp;#39;) be commited successfully?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56105" width="1" height="1"&gt;</description></item><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#56086</link><pubDate>Tue, 06 Jan 2009 23:43:42 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:56086</guid><dc:creator>Uttam Parui</dc:creator><description>&lt;p&gt;I have a question on mapping a MSDTC resource to SQL Server and was hoping to get some clarification.&lt;/p&gt;
&lt;p&gt;Scenario&lt;/p&gt;
&lt;p&gt;Windows 2008 cluster&lt;/p&gt;
&lt;p&gt;Two SQL Server groups – SQL1 and SQL2&lt;/p&gt;
&lt;p&gt;We create two MSDTC resources – MSDTC1 in SQL1 group and MSDTC2 in SQL2 group&lt;/p&gt;
&lt;p&gt;Will MSDTC1 be automatically mapped to SQL1 and MSDTC2 mapped to SQL2?&lt;/p&gt;
&lt;p&gt;My understanding is that by default, SQL1 and SQL2 will get mapped to the default cluster coordinator. Say MSDTC1 was configured first then MSDTC1 will become the default cluster coordinator and both SQL1 and SQL2 will use MSDTC1. In order to configure SQL2 to use MSDTC2, we will explicitly need to use the msdtc.exe command with the –tmMappingSet option.&lt;/p&gt;
&lt;p&gt;Is my understanding correct? Can someone confirm? &lt;/p&gt;
&lt;p&gt;How can I tell which MSDTC resource is being used by SQL?&lt;/p&gt;
&lt;p&gt;Say we somehow know that SQL1 is using MSDTC1, what happens if MSDTC1 fails. Will SQL1 use MSDTC2 or will it use the local MSDTC?&lt;/p&gt;
&lt;p&gt;Thanks for your response in advance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=56086" width="1" height="1"&gt;</description></item><item><title>re: Plumbing 101: A bookshelf list</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/11/05/plumbing-101-a-bookshelf-list.aspx#54391</link><pubDate>Wed, 12 Nov 2008 21:11:21 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:54391</guid><dc:creator>John Apps</dc:creator><description>&lt;p&gt;One other book, the second edition of which is to be published shortly, is &amp;quot;Principles of Transaction Processing&amp;quot; written by Eric Newcomer and Phil Bernstein (&lt;a rel="nofollow" target="_new" href="http://www.amazon.com/Principles-Transaction-Processing-Kaufmann-Management/dp/1558604154/ref=sr_1_4?ie=UTF8&amp;amp;s=books&amp;amp;qid=1226524155&amp;amp;sr=8-4"&gt;www.amazon.com/.../ref=sr_1_4&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Somewhat lighter (pun intended) reading than the Gray book and an excellent complement to it.&lt;/p&gt;
&lt;p&gt;Cheers, John&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=54391" width="1" height="1"&gt;</description></item><item><title>re: Plumbing 101: A bookshelf list</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/11/05/plumbing-101-a-bookshelf-list.aspx#54387</link><pubDate>Wed, 12 Nov 2008 18:29:51 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:54387</guid><dc:creator>Mujtaba Syed</dc:creator><description>&lt;p&gt;Distributed Algorithms by Nancy Lynch is also an excellent book.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.amazon.com/Distributed-Algorithms-Kaufmann-Management-Systems/dp/1558603484/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1226514458&amp;amp;sr=1-1"&gt;www.amazon.com/.../ref=sr_1_1&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=54387" width="1" height="1"&gt;</description></item><item><title>Plumbing 101: A bookshelf list</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/05/31/51085.aspx#54265</link><pubDate>Wed, 05 Nov 2008 14:07:34 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:54265</guid><dc:creator>Jim Johnson's Blog</dc:creator><description>&lt;p&gt;As I mentioned in a previous post , I&amp;#39;m essentially a plumber. I work on infrastructure software&lt;/p&gt;
&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=54265" width="1" height="1"&gt;</description></item><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#53991</link><pubDate>Mon, 20 Oct 2008 23:40:20 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:53991</guid><dc:creator>Vikram Sahijwani</dc:creator><description>&lt;p&gt;[Jim: I asked the transactions team to look into this.&amp;nbsp; Vikram took at look at it and posted this reply.]&lt;/p&gt;
&lt;p&gt;Hi Dror,&lt;/p&gt;
&lt;p&gt;You are right. &amp;nbsp;The enum definition should indeed be:&lt;/p&gt;
&lt;p&gt;typedef enum APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp; LOCAL_APPLICATIONTYPE,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; CLUSTERRESOURCE_APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;} APPLICATIONTYPE;&lt;/p&gt;
&lt;p&gt;Fortunately, as you mentioned, the work-around is quite simple. &amp;nbsp;If you are using C, then replace the enum definition in xolehlp.h with the one I typed above.&lt;/p&gt;
&lt;p&gt;-Vikram&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=53991" width="1" height="1"&gt;</description></item><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#53141</link><pubDate>Tue, 16 Sep 2008 15:16:16 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:53141</guid><dc:creator>Dror Harari</dc:creator><description>&lt;p&gt;Note that the APPLICATIONTYPE enum definition will give you trouble if you write in C rather than in C++. For anyone using C to call this fix the definition in xolehlp.h to:&lt;/p&gt;
&lt;p&gt;typedef enum APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;LOCAL_APPLICATIONTYPE,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;CLUSTERRESOURCE_APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;} APPLICATIONTYPE;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=53141" width="1" height="1"&gt;</description></item><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#53139</link><pubDate>Tue, 16 Sep 2008 14:52:51 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:53139</guid><dc:creator>Dror Harari</dc:creator><description>&lt;p&gt;I find it strange that you manage to compile with this definition of _OLE_TM_CONFIG_PARAMS_V2. I am including xolehlp.h in my code and the compiler (VS 2008 SP1) yells:&lt;/p&gt;
&lt;p&gt;Error	6	error C2061: syntax error : identifier &amp;#39;APPLICATIONTYPE&amp;#39;	c:\program files\microsoft sdks\windows\v6.1\include\xolehlp.h	65	MyTxnPrj&lt;/p&gt;
&lt;p&gt;The problem seems to be with the enum definition for APPLICATIONTYPE which is (as you wrote):&lt;/p&gt;
&lt;p&gt;typedef enum APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;LOCAL_APPLICATIONTYPE,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;CLUSTERRESOURCE_APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;but should have been:&lt;/p&gt;
&lt;p&gt;typedef enum APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;LOCAL_APPLICATIONTYPE,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;CLUSTERRESOURCE_APPLICATIONTYPE&lt;/p&gt;
&lt;p&gt;} APPLICATIONTYPE;&lt;/p&gt;
&lt;p&gt;Makes me wonder what setting am I missing to make it work...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=53139" width="1" height="1"&gt;</description></item><item><title>re: Upcoming webcasts</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/07/03/upcoming-webcasts.aspx#52703</link><pubDate>Sat, 23 Aug 2008 18:32:54 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52703</guid><dc:creator>Miguel Gasca</dc:creator><description>&lt;p&gt;Hey Jim, just to prod you a bit, any chance of you giving any insight into what the Transactions team is working on nowadays?&lt;/p&gt;
&lt;p&gt;Miguel&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52703" width="1" height="1"&gt;</description></item><item><title>re: Building the transaction protocol documents</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/02/28/50334.aspx#52699</link><pubDate>Sat, 23 Aug 2008 18:29:54 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52699</guid><dc:creator>Miguel Gasca</dc:creator><description>&lt;p&gt;Intense period of activity indeed! It made me smile reading through the docs for a bit.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52699" width="1" height="1"&gt;</description></item><item><title>re: The end of an era</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2007/12/31/49582.aspx#52674</link><pubDate>Fri, 22 Aug 2008 08:47:46 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52674</guid><dc:creator>Joseph Healy</dc:creator><description>&lt;p&gt;Ah, Spitbrook - was there &amp;#39;85-&amp;#39;87 and lived up in Francestown. Now that takes me back a piece...&lt;/p&gt;
&lt;p&gt;RIP...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52674" width="1" height="1"&gt;</description></item><item><title>re: MSDTC changes in WS2008, Part 3: Cluster features</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/03/23/50536.aspx#52646</link><pubDate>Thu, 21 Aug 2008 04:46:58 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:52646</guid><dc:creator>Uttam Parui</dc:creator><description>&lt;p&gt;Thanks Jim. This is very helpful. As I was testing, I had created two MSDTC resources in seperate groups (different from the SQL Server group). In that case the cluster resource name needs to be the MSDTC cluster resource, right? If not then how will it know which MSDTC to map to. &lt;/p&gt;
&lt;p&gt;Also, is there a way we can test if SQL Server is infact using the right MSDTC resource?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=52646" width="1" height="1"&gt;</description></item><item><title>re: Upcoming webcasts</title><link>http://www.pluralsight.com/community/blogs/jimjohn/archive/2008/07/03/upcoming-webcasts.aspx#51845</link><pubDate>Mon, 14 Jul 2008 22:11:36 GMT</pubDate><guid isPermaLink="false">d057c89c-07b5-4bfb-b52f-d79d1e3ece89:51845</guid><dc:creator>jim-johnson</dc:creator><description>&lt;p&gt;It looks like at least some are. &amp;nbsp;I went to the MSDN webcasts page (using the link above) and looked at the on-demand list. &amp;nbsp;I found Juval&amp;#39;s, for instance, at &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/events/series/detail/webcastdetails.aspx?seriesid=124&amp;amp;webcastid=1032381607"&gt;www.microsoft.com/.../webcastdetails.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve updated the links.&lt;/p&gt;
&lt;p&gt;Jim.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.pluralsight.com/community/aggbug.aspx?PostID=51845" width="1" height="1"&gt;</description></item></channel></rss>