<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Updating SQL via infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/53230.aspx</link><pubDate>Tue, 30 Mar 2010 11:22:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53230</guid><dc:creator>silverj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53230</wfw:commentRss><description>&lt;p&gt;Afternoon All&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am trying to set a flag in a sql database once a user has clicked on a button within an infopath 2003 form. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have set up a simple test which does not seem to be working and I am at a loss as to say why &lt;/p&gt;
&lt;p&gt;&amp;nbsp;The code within the button is ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function CTRL262_7::OnClick(eventObj) &lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XDocument.QueryAdapter.Command = &amp;quot;Insert into d_TEST SELECT &amp;#39;Test9&amp;#39;&amp;quot; ; &lt;/p&gt;
&lt;p&gt;XDocument.Query(); &lt;/p&gt;
&lt;p&gt;}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can anybody see what I have done wrong?&amp;nbsp;I have also tried to execute it as a stored procedure with no success and my sanity is starting to fray at the edges now! &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>