<?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: SQL Server 2005</title><link>https://www.infopathdev.com:443/forums/thread/46964.aspx</link><pubDate>Tue, 15 Sep 2009 00:14:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46964</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46964.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=46964</wfw:commentRss><description>&lt;p&gt;Hmmm. I&amp;#39;m not sure what you mean by opening the record from the view -- so, you save the record and leave the form open, then there is another view that shows all the records that the user can select from? When I searched the web for the error you were getting, I saw an old post on a Microsoft news group that suggested the primary key field in the query nodes needs to be populated for the update statement to run correctly -- perhaps when the user selects the record from your view, you could try updating the field in the query fields that holds your primary key with the PK of the item selected?&lt;/p&gt;</description></item><item><title>Re: SQL Server 2005</title><link>https://www.infopathdev.com:443/forums/thread/46942.aspx</link><pubDate>Mon, 14 Sep 2009 13:01:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46942</guid><dc:creator>jhill@virginia.edu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=46942</wfw:commentRss><description>&lt;p&gt;I am using basic functionality. But no, I have saved the record along with submitting it. So I open the record from the view of all saved records. It appears that this is where the problem is. If I query the record from the form, edit it, then submit it, it works. But if I open the record from the view, it doesn&amp;#39;t work.&lt;/p&gt;</description></item><item><title>Re: SQL Server 2005</title><link>https://www.infopathdev.com:443/forums/thread/46911.aspx</link><pubDate>Sun, 13 Sep 2009 13:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46911</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=46911</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;And you are using built in InfoPath functionality? You query for the record in the form, then make a change, then submit?&lt;/p&gt;</description></item><item><title>SQL Server 2005</title><link>https://www.infopathdev.com:443/forums/thread/46884.aspx</link><pubDate>Fri, 11 Sep 2009 17:16:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46884</guid><dc:creator>jhill@virginia.edu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=46884</wfw:commentRss><description>&lt;p&gt;I have seen many posts related to this but not one specific to mine. If there is one I apologize for taking everyone&amp;#39;s time.&lt;/p&gt;
&lt;p&gt;I have an SQL Server 2005 database with InfoPath 2007 SP 1. In the database I have one table (demographics) with a primary key that has a simple relationship to about 10 other tables. My InfoPath form has a non-repeating section for the demographics table and repeating sections for the other tables.&lt;/p&gt;
&lt;p&gt;Entry of a record into the demographics and other tables works fine. When I open an existing record, edit either the demographics table or one of the other tables, I receive the following error:&lt;/p&gt;
&lt;p&gt;Violation of PRIMARY KEY constraint &amp;#39;PK_demographics&amp;#39;. Cannot insert duplicate key in object &amp;#39;dbo.demographics&amp;#39;.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want to insert at this point, I want to update. How can I do this?&lt;/p&gt;
&lt;p&gt;Thanks in advance and best regards,&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;</description></item></channel></rss>