<?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: Populate form fields from non-repeating SQL Server data on load</title><link>https://www.infopathdev.com:443/forums/thread/78924.aspx</link><pubDate>Thu, 24 May 2012 17:41:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78924</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=78924</wfw:commentRss><description>&lt;p&gt;We have some products that could help you and wouldn&amp;#39;t require any code.&lt;/p&gt;&lt;p&gt;DBXL will help you retrieve SQL queries into your InfoPath form and also submit data from an InfoPath form back into SQL: &lt;a href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;http://www.qdabra.com/en/products/DBXL.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;qRules will let you retrieve input parameters easily so that you could use them in your SQL query: &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;http://www.qdabra.com/en/products/qRules_new.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Otherwise, I think you&amp;#39;re looking at writing some custom code as there isn&amp;#39;t a way to do this out of the box using rules.&lt;/p&gt;</description></item><item><title>Populate form fields from non-repeating SQL Server data on load</title><link>https://www.infopathdev.com:443/forums/thread/78870.aspx</link><pubDate>Wed, 23 May 2012 15:02:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78870</guid><dc:creator>jmitch18</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=78870</wfw:commentRss><description>I&amp;#39;ve been given the task of creating a large InfoPath 2010 form which will be served by a SharePoint site and it&amp;#39;s data will be submitted to a SQL Server database.  The form needs to display some read-only information from a previous form the user has filled out; if they haven&amp;#39;t filled it out then the fields will just be empty.  I would ideally like to be able to do this without any code if possible.

I&amp;#39;ve created a SQL Server data connection, selected my table and modified the SQL query to look similar to:

&amp;quot;SELECT TOP 1 * FROM MyTable WHERE Id = 1&amp;quot;

What I want to be able to do is replace the hardcoded Id value with a parameter that can be set from the query string and bind my non-repeating data to form fields declaritively.  Is this possible or do I need to write code in the loading event which uses the InputParameters to do this?  Writing the code isn&amp;#39;t a problem as I&amp;#39;m a C# developer but I want to try and minimise the amount code behind in the form if possible.

Thanks in advance</description></item></channel></rss>