<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35166.aspx</link><pubDate>Tue, 02 Dec 2008 18:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35166</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35166</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t because the outer implicit transaction definition will cause the inner transaction to be rolled back.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35160.aspx</link><pubDate>Tue, 02 Dec 2008 17:53:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35160</guid><dc:creator>Jim Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35160</wfw:commentRss><description>&lt;p&gt;You can workaround the rollback by&amp;nbsp;adding a &lt;em&gt;&lt;strong&gt;begin transaction&lt;/strong&gt;&lt;/em&gt;/&lt;strong&gt;&lt;em&gt;commit transaction&lt;/em&gt;&lt;/strong&gt; to your query command or the stored procedure.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35148.aspx</link><pubDate>Tue, 02 Dec 2008 14:22:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35148</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35148</wfw:commentRss><description>&lt;p&gt;Yes, It doesn&amp;#39;t save the data.&lt;/p&gt;
&lt;p&gt;It always puts rollback after stored procedure call.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35106.aspx</link><pubDate>Tue, 02 Dec 2008 01:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35106</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35106</wfw:commentRss><description>&lt;p&gt;So when you publish the form and fill it out, the data is not saved to the database, is that correct?&lt;/p&gt;
&lt;p&gt;I understand what you are saying about the implicit transaction and rollback, but in my experience InfoPath only does this the first time it makes the database call, to generate the schema, then it runs the procedure again, without the rollback.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35105.aspx</link><pubDate>Tue, 02 Dec 2008 01:29:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35105</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35105</wfw:commentRss><description>&lt;p&gt;Thanks for clarification. When I publish the form on sharepoint and fill it, clicking on save button (uses the code specified above), will put implicit transaction before and rollback after stored procedure call.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35103.aspx</link><pubDate>Mon, 01 Dec 2008 23:49:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35103</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35103</wfw:commentRss><description>&lt;p&gt;Actually, the post I refer to, the second entry, he refers to the behavior of calling the stored procedure twice, once to generate schema. By &amp;quot;IP Query&amp;quot; I meant &amp;quot;InfoPath Query&amp;quot;. I apologize for being unclear. What happens when you run your form and it actually calls the stored procedure? Is your data saved to the database?&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35101.aspx</link><pubDate>Mon, 01 Dec 2008 21:31:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35101</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35101</wfw:commentRss><description>&lt;p&gt;Sorry, I don&amp;#39;t know what do you refer to as &amp;quot;IP Query&amp;quot; and can&amp;#39;t find any similarity between my case and the one in your posting.&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35099.aspx</link><pubDate>Mon, 01 Dec 2008 21:12:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35099</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35099</wfw:commentRss><description>&lt;p&gt;I do know that when IP queries, the first query call will be to create the schema, the second query call with actually execute the sproc. &lt;a href="http://www.eggheadcafe.com/software/aspnet/31137951/secondary-data-connection.aspx"&gt;This&lt;/a&gt; post has a little info on that.... When you test the form, does your sproc execute?&lt;/p&gt;</description></item><item><title>Re: Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35033.aspx</link><pubDate>Fri, 28 Nov 2008 21:19:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35033</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35033</wfw:commentRss><description>&lt;p&gt;Any feedback?&lt;/p&gt;
&lt;p&gt;I use something like the following code when I need to save data fields on SQL Server:&lt;/p&gt;
&lt;p&gt;XDocument.QueryAdapter.Command = &amp;quot;exec dbo.SaveSQLComplexDBinfo &amp;quot; + SQLComplexDBID + &amp;quot;,&amp;#39;&amp;quot; + ComplexName + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + DBName + &amp;quot;&amp;#39;,&amp;#39;&amp;quot; + AppCode + &amp;quot;&amp;#39;&amp;quot;; &lt;br /&gt;XDocument.Query(); &lt;/p&gt;
&lt;p&gt;When I check database activity, I see that something like this will be issued to SQL Server:&lt;/p&gt;
&lt;p&gt;set implicit_transactions on SET NO_BROWSETABLE ON&lt;br /&gt;exec dbo.SaveSQLComplexDBinfo 96,SQLDA-CX02&amp;#39;,&amp;#39;ATT25&amp;#39;,&amp;#39;ACTT&amp;#39;&lt;br /&gt;IF @@TRANCOUNT &amp;gt; 0 ROLLBACK TRAN&lt;/p&gt;
&lt;p&gt;I need the data to be saved. Why does Query() method wrap the actual query in a transaction and how can I prevent that?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Transaction</title><link>https://www.infopathdev.com:443/forums/thread/35001.aspx</link><pubDate>Thu, 27 Nov 2008 21:50:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35001</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35001</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How can I get rid of begin transaction and rollback that Infopath puts around any data change I have in user interface preview form? I would like to be able to test my form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;</description></item></channel></rss>