<?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 : Pervasive PSQL Provider and Enlist Transaction</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Pervasive PSQL Provider and Enlist Transaction</description>
  <pubDate>Wed, 29 Jul 2026 14:03:56 -700</pubDate>
  <lastBuildDate>Fri, 21 Jan 2011 21:26:33 -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=2428</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>Pervasive PSQL Provider and Enlist Transaction : I needed to make a PSQL connection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9752#9752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=269" rel="nofollow">thecotton</a><br /><strong>Subject:</strong> 2428<br /><strong>Posted:</strong> 21-Jan-2011 at 9:26pm<br /><br /><P>I needed to make a PSQL connection to the database before the save (and that's also where I needed to do the PSQL BeginTransaction, but that wouldn't have prevented saving changes). No hill for a climber. I'm just now beginning to get a feel for what needs to be done. I have just been making things too complicated....<!--  bmi_SafeAdd&#079;nload(bmi_load,"bmi_orig_img",0);//--></P>]]>
   </description>
   <pubDate>Fri, 21 Jan 2011 21:26:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9752#9752</guid>
  </item> 
  <item>
   <title>Pervasive PSQL Provider and Enlist Transaction : Hi thecotton,  I&amp;#039;m glad...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9677#9677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2428<br /><strong>Posted:</strong> 18-Jan-2011 at 10:35am<br /><br />Hi thecotton,<DIV>&nbsp;</DIV><DIV>I'm glad you solved the first issue.</DIV><DIV>What problem are you having while trying to save changes?</DIV>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 10:35:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9677#9677</guid>
  </item> 
  <item>
   <title>Pervasive PSQL Provider and Enlist Transaction : I am setting as follows: Imports...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9656#9656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=269" rel="nofollow">thecotton</a><br /><strong>Subject:</strong> 2428<br /><strong>Posted:</strong> 14-Jan-2011 at 6:02pm<br /><br />I am setting as follows:<br />Imports IbEm = IdeaBlade.EntityModel<br />Imports IbCore = IdeaBlade.Core<br />Imports DevForceTest.TrackerEntities<br />Public Class TrafficForm<br />Dim qts As New IbEm.TransactionSettings(Transactions.IsolationLevel.ReadCommitted, New TimeSpan(0, 0, 15), False)<br />Dim ts As New IbEm.TransactionSettings(Transactions.IsolationLevel.ReadCommitted, New TimeSpan(0, 0, 15), False)<br />Dim WithEvents Tracker As New DevForceTest.TrackerEntities<br />Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />TrackerEntities.DefaultManager.DefaultQueryStrategy = TrackerEntities.DefaultManager.DefaultQueryStrategy.With(qts) ‘ adding this line fixed problem<br />TrackerEntities.DefaultManager.DefaultSaveOptions.TransactionSettings = ts<br />TrackerEntities.DefaultManager.Connect()<br />Try<br />Me.TrafficBindingSource.DataSource = _<br />Tracker.Traffics.OrderBy(Of Integer)(Function(Traffic) Traffic.TrafKey).ToList()<br />Catch ex As Exception<br />Debug.Print(ex.Message)<br />End Try<br />End Sub<br /><br />Private Sub Tracker_Saving(ByVal sender As Object, ByVal e As IdeaBlade.EntityModel.EntitySavingEventArgs) Handles Tracker.Saving<br />Debug.Print("Saving")<br />End Sub<br />End Class<br />I discovered that I was setting DefaultSaveOptions.TransactionSettings, but had failed to set TransactionSettings for DefaultQueryStrategy. Now that I am setting both, the connection error has gone away. I also picked up your much-more-understandable TransactionSettings.Default, which would have done away with much of my code.<br /> <br />Now if I can only figure out why it is not saving changes, I may get this worked out....<br />]]>
   </description>
   <pubDate>Fri, 14 Jan 2011 18:02:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9656#9656</guid>
  </item> 
  <item>
   <title>Pervasive PSQL Provider and Enlist Transaction :     Hi thecotton,  Where...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9647#9647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2428<br /><strong>Posted:</strong> 13-Jan-2011 at 5:42pm<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>Hi thecotton,</DIV><DIV>&nbsp;</DIV><DIV>Where are you setting <EM>UseTransactionScope</EM>? </DIV><DIV>(I'm assuming you are using</DIV><DIV><I><FONT size=2>TransactionSettings.Default = new TransactionSettings (System.Transactions.IsolationLevel.ReadCommitted, new TimeSpan(0, 1, 0), false);</DIV></I></FONT><DIV>if not let me know how you are setting it)</DIV><DIV>&nbsp;</DIV><DIV>Also, could you verify that <EM>UseTransactionScope</EM> is set to false right before the save/query throwing the exception?</DIV><DIV>(i.e. </DIV><DIV><EM>var queryTransactional = mgr.DefaultQueryStrategy.TransactionSettings.UseTransactionScope;</EM></DIV><DIV><EM>var saveTransactional = mgr.DefaultSaveOptions.TransactionSettings.UseTransactionScope;</EM></DIV><DIV>)</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Thu, 13 Jan 2011 17:42:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9647#9647</guid>
  </item> 
  <item>
   <title>Pervasive PSQL Provider and Enlist Transaction : The Pervasive PSQL .Net provider...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9598#9598</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=269" rel="nofollow">thecotton</a><br /><strong>Subject:</strong> 2428<br /><strong>Posted:</strong> 08-Jan-2011 at 9:38pm<br /><br />The Pervasive PSQL .Net provider 3.5 is compatible with EF2 and Framework 4 EXCEPT that it does not currently support distributed transactions - only local transactions. It works fine with the VS 2010 entity data model (ie, without Devforce EF), but I have had zero success getting it to work with Devforce. If I set the connection to enlist transactions, I get an exception of "The underlying provider failed on open" with inner exception&nbsp;"Specified method is not supported" as was expected from Pervasive documentation. When I set the connection NOT to enlist transactions, I get exception from Ideablade.EntityModel &nbsp;"The underlying provider failed on Enlist Transaction". I have tried setting TransactionSettings to change&nbsp;UseTransactionScope to false, but I srill get&nbsp;the same error. Checking the Pervasive trace log, it would appear that the Pervasive provider did not throw the error - it just shows to have opened the connection and then closed it when I stop the debugger.<DIV>&nbsp;</DIV><DIV>What can I do to allow use of the PSQL provider without enlisting transactions? Again, when used with the entity framework modeler alone, it works OK.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 08 Jan 2011 21:38:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2428&amp;PID=9598#9598</guid>
  </item> 
 </channel>
</rss>