<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code for "Delete &amp; Submit" (Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45308.aspx</link><pubDate>Sun, 02 Aug 2009 02:13:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45308</guid><dc:creator>Winney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45308</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks so much!&amp;nbsp; This was giving me a lot of headaches!&lt;/p&gt;</description></item><item><title>Re: Code for "Delete &amp; Submit" (Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45302.aspx</link><pubDate>Sat, 01 Aug 2009 00:38:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45302</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45302</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I see.&amp;nbsp; Yes, I just tried this and got the same results.&amp;nbsp; It seems this is happening because InfoPath sends the command&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;set implicit_transactions on&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;before your query.&amp;nbsp; Then the DELETE is considered an implicit transaction, and InfoPath sends the command:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;IF @@TRANCOUNT &amp;gt; 0 ROLLBACK TRAN&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Which rolls back your command.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve found that you can get around this by turning implicit_transactions off, so please try this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;XDocument.QueryAdapter.Command = &amp;quot;set implicit_transactions off&amp;nbsp; delete dbo.Table where valueId = 5; &amp;quot;;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Code for "Delete &amp; Submit" (Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45297.aspx</link><pubDate>Fri, 31 Jul 2009 21:00:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45297</guid><dc:creator>Winney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45297</wfw:commentRss><description>&lt;p&gt;No error message, it just wouldn&amp;#39;t delete the row in the DB.&lt;/p&gt;&lt;p&gt;I believe it&amp;#39;s because I did not set the user to OWNER.&amp;nbsp; However, that doesn&amp;#39;t make sense, because I was still able to delete with the DELETE &amp;amp; SUBMIT action. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Code for "Delete &amp; Submit" (Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45239.aspx</link><pubDate>Fri, 31 Jul 2009 14:49:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45239</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45239</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;it didn&amp;#39;t work?&amp;quot;&amp;nbsp; Did you get an error message?&amp;nbsp; If so, what?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Code for "Delete &amp; Submit" (Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/45235.aspx</link><pubDate>Fri, 31 Jul 2009 13:37:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45235</guid><dc:creator>Winney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45235</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m currently using Infopath 2003 and I haven&amp;#39;t been able to find code for this action.&lt;/p&gt;&lt;p&gt;I&amp;#39;m using JScript and have tried:&lt;/p&gt;&lt;p&gt; XDocument.QueryAdapter.Command = &amp;quot;delete dbo.Table where valueId = 5; &amp;quot;;&lt;br /&gt;XDocument.Query();&lt;/p&gt;&lt;p&gt;I&amp;#39;ve also tried a Stored Procedure and it didn&amp;#39;t work.&amp;nbsp; Yet when I used the normal Delete &amp;amp; Submit action, it did work.&amp;nbsp; So I was hoping to run that action in the Jscript.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks, &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>