<?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: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99371.aspx</link><pubDate>Wed, 01 Oct 2014 15:06:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99371</guid><dc:creator>AndreaARCH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99371.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99371</wfw:commentRss><description>&lt;p&gt;Thanks Hillary :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;I will have a try with this and let you know how I get on.&lt;/p&gt;&lt;p&gt;Andrea&lt;/p&gt;&lt;p&gt;:D&lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99370.aspx</link><pubDate>Wed, 01 Oct 2014 14:56:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99370</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99370</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t think there is going to be a way to prevent the data from being returned. You could HIDE the previous appraisals - just add conditional formatting to the repeating section to hide it if it already has an ID (for example).&lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99366.aspx</link><pubDate>Wed, 01 Oct 2014 09:02:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99366</guid><dc:creator>AndreaARCH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99366</wfw:commentRss><description>&lt;p&gt;Hi Hillary&lt;/p&gt;&lt;p&gt;I&amp;nbsp;am quite new to this so I&amp;#39;m sorry if I am confusing you :)&amp;nbsp;&amp;nbsp;&amp;nbsp; I queried the persons employee details for the first table so that the form knows which person to attach the appraisal form to. However the form also pulls back all of the appraisal information that I had previously entered and I was hoping for a &amp;quot;fresh&amp;quot; new record to enter new appraisal data.&amp;nbsp; I understand that I could probably add a whole new record beneath the previous appraisal record but this is not what I want... I don&amp;#39;t wish to see the previous appraisal data.&amp;nbsp; Otherwise this would make the query unsecure as anyone could run the query and find other workers appraisal information.&lt;/p&gt;&lt;p&gt;I did try it from scratch using the &amp;quot;new record&amp;quot; button but this clears the query that has been ran and instead on submit this produces a new appraisal record and a new employee record (giving the employee a second ID).&amp;nbsp; If I dont click new record and type over the appraisal form... this overwrites.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Andrea :)&lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99356.aspx</link><pubDate>Tue, 30 Sep 2014 16:43:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99356</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99356</wfw:commentRss><description>&lt;p&gt;So - I&amp;#39;m confused by this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have&amp;nbsp;managed to&amp;nbsp;overwrite but I am unable to simply insert a row into table&amp;nbsp;2,&amp;nbsp;which is what I want to do. Everytime I get it to submit a new row in the appraisal table all of the keys change and a new employee ID is generated.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When you open the form and query, then click &amp;quot;add new row&amp;quot; to the appraisal section, nothing happens? &lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99348.aspx</link><pubDate>Tue, 30 Sep 2014 15:05:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99348</guid><dc:creator>AndreaARCH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99348</wfw:commentRss><description>&lt;p&gt;Hi Hillary&lt;/p&gt;&lt;p&gt;Many thanks for your response :)&amp;nbsp; I have indeed added the two tables to my main database connection.&amp;nbsp; I then tried adding a secondary connection to a sharepoint list to just query the employee table details to see if that would help... but it still queries the Appraisal Table no matter what I do.&amp;nbsp; The form attached is the one that I have been messing around with trying to connect to my test database with no luck. The original is submitting to a sharepoint site for now with no issues.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Andrea&lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99347.aspx</link><pubDate>Tue, 30 Sep 2014 14:56:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99347</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99347.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99347</wfw:commentRss><description>&lt;p&gt;Hi - so in your form&amp;#39;s main data connection, you&amp;#39;ve connected the two tables, is that correct? Any chance you could share your form? You can attach a template under the options tab - I&amp;#39;d probably understand better if I could see it. :)&lt;/p&gt;</description></item><item><title>Re: Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99338.aspx</link><pubDate>Tue, 30 Sep 2014 09:02:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99338</guid><dc:creator>AndreaARCH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99338</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi All&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does anybody have any suggestions :S&amp;nbsp;&lt;/p&gt;</description></item><item><title>Difficulty with Infopath 2007 submitting and receiving data from SQL Database.</title><link>https://www.infopathdev.com:443/forums/thread/99221.aspx</link><pubDate>Mon, 22 Sep 2014 12:31:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99221</guid><dc:creator>AndreaARCH</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=99221</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;&amp;nbsp;I was wondering if I could please ask for some help?&amp;nbsp;&amp;nbsp; I have an infopath form that I have connected to a SQL database (a test database for now). The database contains two tables, the first table has the employee details in (Employee ID [PKey], Fname, Sname, DOB, Job Role) and the second table has details of any appraisals they have had completed (Employee ID [PKey, Appraisal ID, Objective 1, Objective 2 etc].&amp;nbsp; I have an infopath form which&amp;nbsp;is using a query to help the user complete section one Employee details so&amp;nbsp;that there can be no mistakes (i.e. two employee id numbers), this works fine and I can&amp;nbsp;populate the document with the employees basic details.&amp;nbsp; &lt;/p&gt;&lt;p&gt;The&amp;nbsp;second part of the form is supposed to remain blank so that the worker&amp;nbsp;can complete a new appraisal&amp;nbsp;form but two problems are occuring:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp;Section 2 is querying the second&amp;nbsp;table and pulling all previous appraisal data through&lt;/p&gt;&lt;p&gt;2. Any changes is overwriting this instead of&amp;nbsp;adding a&amp;nbsp;new row of data into the appraisal table despite the appraisal ID and all other information aside from the Employee ID being different.&lt;/p&gt;&lt;p&gt;I have&amp;nbsp;managed to&amp;nbsp;overwrite but I am unable to simply insert a row into table&amp;nbsp;2,&amp;nbsp;which is what I want to do. Everytime I get it to submit a new row in the appraisal table all of the keys change and a new employee ID is generated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry I&amp;#39;m quite new to SQL databases - our HR system has had an upgrade and now sits on a SQL server so I am having to set the forms up differently. I was new to all of this anyway so to add in that to the mix has me at a bit of a loss&lt;/p&gt;&lt;p&gt;Any advice at all you can&amp;nbsp;give me would be greatly appreciated&lt;/p&gt;&lt;p&gt;Andrea :)&lt;/p&gt;&lt;p&gt;P&amp;#39;S - I have a main connection setup and also a secondary &amp;quot;Employee&amp;quot; connection which is simply receiving data from the Employee Table. I have tried Master and Detail controls but this doesn&amp;#39;t appear to work the way I need it to, each appraisal needs to be different so cannot show the worker their previous forms.&lt;/p&gt;</description></item></channel></rss>