<?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: 2007 - SQL Database - filtering</title><link>https://www.infopathdev.com:443/forums/thread/74492.aspx</link><pubDate>Tue, 24 Jan 2012 17:57:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74492</guid><dc:creator>bobga</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=74492</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s what I&amp;#39;ve used:&lt;/p&gt;
&lt;p&gt;Go to the data connection for a sql table.&amp;nbsp; Click on modify table and edit sql.&amp;nbsp; You will see the sql that has been generated when the data connection was established.&amp;nbsp; You can edit the sql.&amp;nbsp; To get unique values for a pull down.&amp;nbsp; I substituted the following sql statement:&lt;/p&gt;
&lt;p&gt;select &amp;quot;ID&amp;quot;,&amp;quot;Creditor Counsel&amp;quot; as &amp;quot;Creditor_Counsel&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;EO Credit Abuse Master&amp;quot; as &amp;quot;EO_Credit_Abuse_Master&amp;quot; where ID in (select max(ID) from &amp;quot;dbo&amp;quot;.&amp;quot;EO Credit Abuse Master&amp;quot; where &amp;quot;Creditor Counsel&amp;quot; = &amp;quot;EO_Credit_Abuse_Master&amp;quot;.&amp;quot;Creditor Counsel&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by &amp;quot;Creditor Counsel&amp;quot;&lt;/p&gt;
&lt;p&gt;Click on test sql statement to see if your sql is correct.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good luck&lt;/p&gt;</description></item><item><title>2007 - SQL Database - filtering</title><link>https://www.infopathdev.com:443/forums/thread/74486.aspx</link><pubDate>Tue, 24 Jan 2012 17:13:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74486</guid><dc:creator>danli66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=74486</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have created a form to be posted onto a SharePoint site, users will access the form select data which will then be submitted and carried through a process by a workflow.&amp;nbsp; The data that will populate various drop down fields will come from our sql erp database.&amp;nbsp; The databases are all separate per country but sat on the same server, so my first problem is to be able state in a branch indicator which sql admin I want to populate the drop down lists.&amp;nbsp; Any ideas?&amp;nbsp; The alternative I guess would be to create one database from all 6 as a layer which updates daily from the reality??&lt;/p&gt;
&lt;p&gt;Secondly, I have noticed that the database has a lot emply and rubbish fields, I can avoid these with rules when connected so not a problem but any one got any idea on how to only view one line of the same data?&amp;nbsp; For example multiple fields that state &amp;quot;Herbicides&amp;quot; and I only want to show one in the drop down box&lt;/p&gt;
&lt;p&gt;Any help will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Lisa&lt;/p&gt;</description></item></channel></rss>