<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query with InfoPath2010 and SQl Server</title><link>https://www.infopathdev.com:443/forums/thread/73386.aspx</link><pubDate>Mon, 02 Jan 2012 05:57:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73386</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73386</wfw:commentRss><description>&lt;p&gt;Hi Velnias2011 and welcome,&lt;/p&gt;&lt;p&gt;2) You can filter your SQL queries using values from the form if you write code in the form or use a Web Service. Our common library, qRules, is an example of the former and I believe Hilary has blogged how to set this up via a command (i.e. you just inject qRules and use Rules to access qRules code that does the SQL query). We also have a Web Service called DBXL that shows how to do this and comes with a query builder that helps you construct the xpaths that will extract the data from your form into the query string. You can install free trials of both.&lt;/p&gt;&lt;p&gt;3) You can map your data to SQL if the form is created from SQL tables from scratch. However, that is not a best practice because it limits your ability to modify the form down-the-road and it doesn&amp;#39;t work for browser-based forms. We recommend using a Web Service here and in fact the DBXL Web service mentioned above will submit your XML to a SQL table or set of tables. &lt;/p&gt;&lt;p&gt;So, in summary, you can do both 2) and 3) but you will need to do some coding or look into third-party tools. &lt;/p&gt;</description></item><item><title>Query with InfoPath2010 and SQl Server</title><link>https://www.infopathdev.com:443/forums/thread/73333.aspx</link><pubDate>Thu, 29 Dec 2011 17:54:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73333</guid><dc:creator>velnias2011</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73333</wfw:commentRss><description>&lt;p&gt;Hey in Infopath im wondering if the following is possible&lt;/p&gt;
&lt;p&gt;1) I am able to pull First and Last name from a user via a webservice, and I prefill my First Name and Last Name textbox from this. (This works)&lt;/p&gt;
&lt;p&gt;2) Pull these prefilled details from textboxes, and use them in a SQL query in a Database to pull out value from another table i.e. select customerId from table x where firstname = &amp;#39;valuefirstnameinfopath&amp;#39; and lastname = &amp;#39;valuelastnameinfopath&amp;#39;&lt;/p&gt;
&lt;p&gt;3) Insert the retrieved identifier into a seperate SQL Server table ?&lt;/p&gt;
&lt;p&gt;Just confused what template/method to approach in infopath to achieve this ?&lt;/p&gt;</description></item></channel></rss>