<?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: Updating a SQL secondary datasource</title><link>https://www.infopathdev.com:443/forums/thread/22455.aspx</link><pubDate>Tue, 21 Aug 2007 08:00:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22455</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22455</wfw:commentRss><description>&lt;p&gt;Hi DJay,&lt;/p&gt;
&lt;p&gt;Can you check below the line is executed successfully in your database.&lt;/p&gt;
&lt;p&gt;UPDATE tbl_juri_checkoff SET inactive = ‘Inactive’ WHERE uniqueID = ‘ID’;&lt;/p&gt;
&lt;p&gt;If the above statement is executed correctly then your code is correct. Can you keep the query line in try and catch statement then let you know what type of error it is giving.&lt;/p&gt;
&lt;p&gt;Hope this Help you.&lt;/p&gt;</description></item><item><title>Updating a SQL secondary datasource</title><link>https://www.infopathdev.com:443/forums/thread/22180.aspx</link><pubDate>Tue, 07 Aug 2007 00:53:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22180</guid><dc:creator>djay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22180</wfw:commentRss><description>&lt;p&gt;I have a SQL database setup as a secondary data source and I want to update it from InfoPath.&lt;/p&gt;&lt;p&gt;InfoPath doesn&amp;#39;t support this since I don&amp;#39;t have access to a web server so I can&amp;#39;t make a web service.&lt;/p&gt;&lt;p&gt;So I am trying to do it manually using C#.&amp;nbsp; I set the command like this:&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;Juris.Command = &amp;quot;UPDATE tbl_juri_checkoff SET inactive = &amp;#39;&amp;quot; + Inactive + &amp;quot;&amp;#39; WHERE uniqueID = &amp;#39;&amp;quot; + ID + &amp;quot;&amp;#39;&amp;quot;;&lt;/p&gt;&lt;p&gt;and then I:&lt;/p&gt;&lt;p&gt;Juris.Query();&lt;/p&gt;&lt;p&gt;and the database is not updated.&amp;nbsp; If I send this same query using something else it works fine.&amp;nbsp; Juris.Query() works fine with a normal SELECT statement.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t get any errors or anything.&amp;nbsp; It just doesn&amp;#39;t work.&lt;/p&gt;&lt;p&gt;Anyone have any ideas?&lt;/p&gt;&lt;p&gt;Anyone tried to do something like this before?&lt;/p&gt;&lt;p&gt;Is InfoPath unable to handle UPDATE SQL commands?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-DJay&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>