<?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: Run Query returns every record...</title><link>https://www.infopathdev.com:443/forums/thread/79276.aspx</link><pubDate>Wed, 06 Jun 2012 13:47:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79276</guid><dc:creator>johnk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=79276</wfw:commentRss><description>&lt;p&gt;I put a filter on the dbname&amp;nbsp;in the repeating table section and this solved the problem of every record loading.&amp;nbsp;&amp;nbsp; Not sure why this was necessary since the other forms I created&amp;nbsp;work without a filter.&lt;/p&gt;</description></item><item><title>Run Query returns every record...</title><link>https://www.infopathdev.com:443/forums/thread/79241.aspx</link><pubDate>Tue, 05 Jun 2012 14:04:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79241</guid><dc:creator>johnk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79241.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=79241</wfw:commentRss><description>&lt;p&gt;Hello everyone.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;An Infopath(2007) form created from the Database template&amp;nbsp;is returning every row whenever a specific record is&amp;nbsp;requested in&amp;nbsp;the Run Query section. This form uses a main source consisting of two tables linked by a unique id within a&amp;nbsp;SQL database.&amp;nbsp; Table1 contains columns&amp;nbsp;&amp;nbsp;&lt;strong&gt;dbname_id&lt;/strong&gt; and&amp;nbsp; &lt;strong&gt;PII_data&lt;/strong&gt;.&amp;nbsp;&amp;nbsp; Table2 condatins &lt;strong&gt;Srvrdb_id&lt;/strong&gt; and &lt;strong&gt;db_name&lt;/strong&gt;.&amp;nbsp; &amp;#39;Run Query&amp;#39; &amp;nbsp;is linked to the queryField&amp;nbsp; &amp;#39;&lt;em&gt;dbname&lt;/em&gt;&amp;#39;.&amp;nbsp; When a specfic &lt;em&gt;dbname&lt;/em&gt; is entered and Run Query is&amp;nbsp;select, every record in the database is displayed with the &lt;em&gt;dbname&lt;/em&gt; field blank except for the record specifically requested which does&amp;nbsp;display the dbname.&amp;nbsp; I expected to see only one record displayed.&lt;/p&gt;
&lt;p&gt;I have created&amp;nbsp;a few similar&amp;nbsp;forms previously which&amp;nbsp;display only the record requested.&amp;nbsp;&amp;nbsp; The only difference between the forms is the main source.&amp;nbsp; The old forms main source&amp;nbsp;contained one table,&amp;nbsp;&amp;nbsp;the new form contains two tables.&amp;nbsp;I must be missing something simple but&amp;nbsp;I don&amp;#39;t know what.&amp;nbsp;&amp;nbsp; Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;The following is the SQL code generated by the Data Connection Wizard.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;shape&lt;br /&gt;&amp;nbsp;{select &amp;quot;dbName_ID&amp;quot;,&amp;quot;PII_data&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;Data_Dictionary&amp;quot; as &amp;quot;Data_Dictionary&amp;quot;} as &amp;quot;Data_Dictionary&amp;quot;&lt;br /&gt;&amp;nbsp;append&lt;br /&gt;&amp;nbsp;&amp;nbsp;({select &amp;quot;SrvrDB_ID&amp;quot;,&amp;quot;dbName&amp;quot; &amp;nbsp;from &amp;quot;dbo&amp;quot;.&amp;quot;SERVERS_DATABASES&amp;quot; as &amp;quot;SERVERS_DATABASES&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;dbName_ID&amp;quot; TO &amp;quot;SrvrDB_ID&amp;quot;) as &amp;quot;SERVERS_DATABASES&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>