<?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: SQL connection submits query twice</title><link>https://www.infopathdev.com:443/forums/thread/79075.aspx</link><pubDate>Thu, 31 May 2012 00:37:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79075</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=79075</wfw:commentRss><description>&lt;p&gt;So, what&amp;#39;s your code?&lt;/p&gt;</description></item><item><title>SQL connection submits query twice</title><link>https://www.infopathdev.com:443/forums/thread/78953.aspx</link><pubDate>Fri, 25 May 2012 13:05:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78953</guid><dc:creator>jsherman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=78953</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; I am stuck on this one and need help urgently.. I have an Infopath 2007 form developed with InfoPath Designer 2010.. I have created a button that builds a huge SQL string then submits it via a SQL connection already existing in the form.. The problem I am having is when the user hits the button the SQL string is being run twice on the SQL server.. I&amp;#39;ve done a trace and watched it happen.. The batch starts, each command is completed, the batch completes, infopath does some close out commands then it runs the batch again... I&amp;#39;ve put breakpoints in the code and made sure it never moves from that line of code and it doesn&amp;#39;t.. I can&amp;#39;t figure out why it is running the SQL string twice...&lt;/p&gt;</description></item></channel></rss>