<?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: Question on email attachments and sql</title><link>https://www.infopathdev.com:443/forums/thread/55325.aspx</link><pubDate>Wed, 26 May 2010 12:17:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55325</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=55325</wfw:commentRss><description>&lt;p&gt;You could have a hidden field that gets set when the attachment is changed (my:attachmentChange = True). Maybe SQL will then see that this field has changed and therefore UPDATE instead of INSERT.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Question on email attachments and sql</title><link>https://www.infopathdev.com:443/forums/thread/55216.aspx</link><pubDate>Fri, 21 May 2010 20:46:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55216</guid><dc:creator>Flanker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55216.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=55216</wfw:commentRss><description>&lt;p&gt;Hi, I have a form with a data connection to an sql database and I have the form is published to a SharePoint website. When I fill out the form from Sharepoint then&amp;nbsp;submit it,&amp;nbsp;it inserts into&amp;nbsp;the sql database and then I send an email with the attached form. Then I save the form on Sharepoint.&amp;nbsp;&amp;nbsp; So far everything is good.&lt;/p&gt;
&lt;p&gt;When I open the saved infopath form from Sharepoint and make modifications to it and then submit it again, it UPDATES the sql database.&amp;nbsp; So far everything still good.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my problem,&amp;nbsp; When I open the attached infopath form from the email, and make modifications to it and then submit it, it INSERTS to the sql database.&amp;nbsp; So now I have duplicate entries of the same form but with a different&amp;nbsp;primary key.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My question then, is there some way to modify the infopath form when opening from email, and submit as an UPDATE?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Flanker&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>