<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How to user transactions</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How to user transactions</description>
  <pubDate>Wed, 22 May 2013 19:17:26 -700</pubDate>
  <lastBuildDate>Mon, 18 May 2009 08:51:44 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1021</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How to user transactions : I tried your code on my machine...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=4553#4553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1021<br /><strong>Posted:</strong> 18-May-2009 at 8:51am<br /><br />I tried your code on my machine and did not receive this error.<DIV>&nbsp;</DIV><DIV>This error occurs in certain situations when you have a nested transaction.</DIV><DIV>&nbsp;</DIV><DIV>I suggest searching the Internet for "<FONT size=2>Cannot start more transactions on this session".&nbsp; You will find a good number of matches.</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 18 May 2009 08:51:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=4553#4553</guid>
  </item> 
  <item>
   <title>How to user transactions : Hi, i tried below code but i...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=4551#4551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=159" rel="nofollow">vinothvdp</a><br /><strong>Subject:</strong> 1021<br /><strong>Posted:</strong> 18-May-2009 at 6:03am<br /><br /><P>Hi,</P><DIV>i tried below code but i am getting "<FONT size=2>Save failed - Cannot start more transactions on this session."</FONT></DIV><DIV><FONT size=2><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>could </FONT>you please assist me.</FONT></P></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>using</FONT></FONT><FONT size=2> (</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>TransactionScope</FONT></FONT><FONT size=2> scope = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>TransactionScope</FONT></FONT><FONT size=2>())</P><DIV>{</DIV><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>try</P></FONT></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>SaveOptions</FONT></FONT><FONT size=2> mSaveOptions = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>SaveOptions</FONT></FONT><FONT size=2>();</P><P>mSaveOptions.IsTransactional = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>true</FONT></FONT><FONT size=2>;</P><P>pm.SaveChanges(mSaveOptions);</P><P>scope.Complete();</P><P></FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>MessageBox</FONT></FONT><FONT size=2>.Show(</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>"Sucess"</FONT></FONT><FONT size=2>);</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>catch</FONT></FONT><FONT size=2> (</FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>PersistenceManagerSaveException</FONT></FONT><FONT size=2> ex)</P><P>{</P><P></FONT><FONT color=#008080 size=2><FONT color=#008080 size=2>MessageBox</FONT></FONT><FONT size=2>.Show(ex.Message.ToString());</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>finally</P></FONT></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//scope.Dispose();</P></FONT></FONT><FONT size=2><P>}</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>Thank you,</P><DIV>Vinoth</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 18 May 2009 06:03:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=4551#4551</guid>
  </item> 
  <item>
   <title>How to user transactions :  Here is how you can do two saves...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=3719#3719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1021<br /><strong>Posted:</strong> 18-Dec-2008 at 1:16pm<br /><br /><DIV><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">Here is how you can do two saves in one transaction:.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'"><o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You must use Microsoft Distributed Transaction Coordinator (DTC)<o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start a Transaction (e.g., <FONT size=3><FONT face="Courier New"><SPAN style="COLOR: blue">using</SPAN><FONT color=#000000> (</FONT><SPAN style="COLOR: #2b91af">TransactionScope</SPAN><FONT color=#000000> scope = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #2b91af">TransactionScope</SPAN><FONT color=#000000>()<o:p></o:p></FONT></FONT></FONT></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do the first SaveChanges using a Transactional Save<o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do the second SaveChanges using a Transactional Save<o:p></o:p></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Arial','sans-serif'">(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If both saves are successful, commit the Transaction (e.g., <FONT color=#000000>scope.Complete();</FONT></SPAN></P></DIV>]]>
   </description>
   <pubDate>Thu, 18 Dec 2008 13:16:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=3719#3719</guid>
  </item> 
  <item>
   <title>How to user transactions : Hello sir,  How to use begin...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=3703#3703</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=159" rel="nofollow">vinothvdp</a><br /><strong>Subject:</strong> 1021<br /><strong>Posted:</strong> 13-Dec-2008 at 12:23am<br /><br />Hello sir,<DIV>&nbsp;</DIV><DIV>How to use begin ,<FONT size=2>Commit and rollback </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#000000>transactions</FONT>.<FONT color=#000000>can u give me some example.</FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thank you.</FONT></DIV>]]>
   </description>
   <pubDate>Sat, 13 Dec 2008 00:23:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1021&amp;PID=3703#3703</guid>
  </item> 
 </channel>
</rss>