<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Changing existing row and inserting row fails</title><link>https://www.infopathdev.com:443/forums/thread/57290.aspx</link><pubDate>Fri, 23 Jul 2010 15:00:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57290</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=57290</wfw:commentRss><description>&lt;p&gt;Patrick,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&amp;nbsp; We&amp;#39;ve looked at the accelerator off and on but never took the plunge.&amp;nbsp; One of these days we will.&lt;/p&gt;
&lt;p&gt;We found the problem with our form.&amp;nbsp; We had a field called &amp;quot;last Modified&amp;quot; which was a date and time in the repeating table.&amp;nbsp; We were updating this field with the function Today(), however, as you know when you update a field without filter in a repeating table, it updates all the rows.&amp;nbsp; Somehow this was causing our problem.&amp;nbsp; When we removed the rule, the problem went away.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Eric.&lt;/p&gt;</description></item><item><title>Re: Changing existing row and inserting row fails</title><link>https://www.infopathdev.com:443/forums/thread/57173.aspx</link><pubDate>Thu, 22 Jul 2010 00:16:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57173</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=57173</wfw:commentRss><description>&lt;p&gt;Hi Ek38&lt;/p&gt;
&lt;p&gt;When you created the data connection, did you specify that the field was primary key? You may want to look at the wizard again. I thought there was a specification required for single table cases. Usually, you&amp;#39;ll have the repeating table under another table and that should work fine since it knows it&amp;#39;s got a foreign key.&amp;nbsp;This should work but&amp;nbsp;may require reshaping your&amp;nbsp;data connection.&lt;/p&gt;
&lt;p&gt;Keep in mind that InfoPath&amp;nbsp;SQL&amp;nbsp;data connection&amp;nbsp;has numerous limitations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Can&amp;#39;t use with browser-enabled forms when SQL on a different server&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Can&amp;#39;t use with XML data types (like images and rich text)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Changes to DB or XSN render previously saved XMLs invalid (not an issue if you disable save)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Doesn&amp;#39;t work in an extranet scenario&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;etc.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;That&amp;#39;s why the best practice is to use a Web Service. Qdabra freely pays for this forum and our goal is to answer 90% of all posts (some posts are about solving World Peace, etc. which we think is unobtainable given the species). Qdabra sells an inexpensive &lt;a title="DBXL" href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;Web Service&lt;/a&gt; accelerator called &amp;quot;DBXL&amp;quot;&amp;nbsp;that you can use to map your forms to SQL. It has many other benefits too (fills lots of SharePoint gaps). Rather than write one Web Service for each form template, DBXL provides a data-driven solution. So, in addition to saving you boat loads of time, you also save money since you can use the same Web Service for all of your InfoPath templates. &lt;/p&gt;
&lt;p&gt;Best of luck with your mission,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Changing existing row and inserting row fails</title><link>https://www.infopathdev.com:443/forums/thread/57157.aspx</link><pubDate>Wed, 21 Jul 2010 13:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57157</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=57157</wfw:commentRss><description>&lt;p&gt;One database table with retrieve and submit enabled.&amp;nbsp; Return multiple rows is true.&lt;/p&gt;
&lt;p&gt;One repeating table.&amp;nbsp; Can&amp;#39;t get much simpler.&lt;/p&gt;
&lt;p&gt;Problem:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;When we retrieve an existing row and make changes to the row.&amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Then without submitting it back to the DB, we&amp;nbsp;&amp;quot;Insert a new row&amp;quot; and add different values.&amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;When we submit both rows&amp;nbsp;back to the DB, the values in the first row overwrite the newly inserted row and essentially we have 2 identical rows.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;(note: the only value that is different after submitting is the ID column.&amp;nbsp; It is an &amp;quot;Identity field&amp;quot; in SQL and auto increments)&lt;/p&gt;
&lt;p&gt;This is 100% repeatable and happens everytime.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If we change a row then submit.&amp;nbsp; Then Insert a row and submit, it works fine.&amp;nbsp; But really we our users shouldnt&amp;#39; have to do this extra step.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>