<?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: Passing a parameter from the form to a SQL Stored Procedure in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/66626.aspx</link><pubDate>Tue, 17 May 2011 20:01:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66626</guid><dc:creator>Steph11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=66626</wfw:commentRss><description>&lt;p&gt;If you&amp;nbsp;don&amp;#39;t want to write code you could&amp;nbsp;do this by filtering a secondary data connection. Let&amp;#39;s say that your secondary data connection returns all the records from your table (accountId and emailaddress). Your first control would be bound to the accountid value and your second control&amp;nbsp;would be bound to&amp;nbsp;the emailadress filter&amp;nbsp;by the value from your main data connection (accountid). In this case&amp;nbsp;you are not passing a parameter to the sql stored procedure but just filtering the data in InfoPath.&lt;/p&gt;
&lt;p&gt;If you want to pass the parameter to the stored procedure&amp;nbsp;you could do this with a&amp;nbsp;web service or using code behind&amp;nbsp;with the AdoQueryConnection&amp;#39;s&amp;nbsp;Command property.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Passing a parameter from the form to a SQL Stored Procedure in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/66621.aspx</link><pubDate>Tue, 17 May 2011 16:21:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66621</guid><dc:creator>Dracarnion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=66621</wfw:commentRss><description>Hi - 

I have the need to retrieve the email address of the manager of the name entered into a Contact Selector control.  When the user chooses a user, I&amp;#39;d like the pass the AccountId value into the stored procedure and store the value returned in another control.  I have the stored procedure working and returning information, but I have not yet figured out how to pass in a parameter from the form so that it can be dynamic.  If anyone has experience with this or advice, please let me know.  I&amp;#39;m not planning to use any code-behind, but if that is the only solution, please let me know as well.

Thanks in advance.</description></item></channel></rss>