<?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>Using SQL Server DB as a datasource</title><link>https://www.infopathdev.com:443/forums/thread/84063.aspx</link><pubDate>Wed, 31 Oct 2012 19:07:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84063</guid><dc:creator>ccondley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=84063</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m going to apologize in advance if something like this has been posted.&amp;nbsp; I looked for a while and didn&amp;#39;t find anything...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a single database table with repeating data that I want to use as a datasource for my infopath form.&amp;nbsp; For example:&lt;/p&gt;
&lt;p&gt;MsgCat&lt;/p&gt;
&lt;p&gt;MsgNbr&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MsgText&lt;/p&gt;
&lt;p&gt;I want the user to select a&amp;nbsp;MsgCat and MsgNumber from drop down lists, then display the text that&amp;#39;s associated with it.&amp;nbsp; Problem is, MsgCat and MsgNbr are both repeating fields in the table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Do I need to create a datasource that is a select distinct query for each dropdown, then filter based on the concatenated result?&amp;nbsp; Or is there a better way?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item></channel></rss>