<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26905.aspx</link><pubDate>Sat, 01 Mar 2008 06:42:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26905</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26905</wfw:commentRss><description>&lt;p&gt;Sorry for not getting back to you sooner.&lt;/p&gt;
&lt;p&gt;Web services give you the most flexibility, allowing both dynamic queries and submits to the database.&amp;nbsp;freeing you from&amp;nbsp;the constraints of the basic InfoPath functionality.&lt;/p&gt;
&lt;p&gt;The issue is creating them and that is why we have developed an installable package of Web services to give this functionality in a 10 minute install.&lt;/p&gt;
&lt;p&gt;If you would like a demonstration of what can be done and to discuss your solution needs send me an email.&lt;/p&gt;</description></item><item><title>Re: Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26840.aspx</link><pubDate>Thu, 28 Feb 2008 10:55:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26840</guid><dc:creator>gcarroll</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26840</wfw:commentRss><description>&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I’ve had a look at what this guy has done and from what I read, he has built a master/detail view using the secondary and main data connection. He has actually used the secondary view to control the master and is filtering his detail section from the main data connector. &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I’m not sure that this approach would work for&amp;nbsp;me as&amp;nbsp;I need to submit back to the main connection, so&amp;nbsp;I&amp;#39;ll need the detail to be in the main connection. This approach would not allow me to do that.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;I am desperate to find a solution to this, and if anyone has one, please feel free to disclose it.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;span style="COLOR:#1f497d;"&gt;&lt;font face="Calibri" size="3"&gt;However, as my deadline is fast approaching for this project, how quickly can a web service (created by me) be implemeted? I ask this as I&amp;#39;ve never created one in line with infoPath.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26768.aspx</link><pubDate>Tue, 26 Feb 2008 19:02:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26768</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26768.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26768</wfw:commentRss><description>&lt;p&gt;Web Services are always the best practice from a delivery standpoint and maintenance since they are not coded into the solution.&lt;/p&gt;
&lt;p&gt;Here is another post though if you have to go down that road.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/t/6765.aspx"&gt;&lt;font color="#666666"&gt;http://www.infopathdev.com/forums/t/6765.aspx&lt;/font&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26764.aspx</link><pubDate>Tue, 26 Feb 2008 16:33:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26764</guid><dc:creator>AlphaCity7</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26764</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I found this in the forums, I think it is a way to query the secondary Sql db using code without going through a web service, but as my programming is very poor to say the least, I would like a second opinion on it. Can someone help in confirming or rejecting the proposed solution?&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;http://www.infopathdev.com/forums/p/4373/17190.aspx#17190&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26652.aspx</link><pubDate>Thu, 21 Feb 2008 15:40:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26652</guid><dc:creator>gcarroll</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26652</wfw:commentRss><description>&lt;p&gt;Hi Alpha,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yeah I ran into the same problem. What a massive limitation! Since&amp;nbsp;my data set was only small (not 100,000!) I just kept it that way. Takes 20 seconds to open so not too bad! Except now I can&amp;#39;t expand my records without&amp;nbsp;delaying the loading time.&amp;nbsp;If someone has a solution to this I would love to know.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Gerry&lt;/p&gt;</description></item><item><title>Query a secondary db via code</title><link>https://www.infopathdev.com:443/forums/thread/26634.aspx</link><pubDate>Wed, 20 Feb 2008 18:25:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26634</guid><dc:creator>AlphaCity7</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=26634</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having some difficulty with my secondary data connection. I need to use a secondary connection to a Sql Server table to query records. At present the form takes in all records from Sql and then filters accordingly. With 45,000 or so records, it takes&amp;nbsp;1 minute to do, and this record base will increase to 100,000 shortly, so highly inefficient. I understand the limitations of InfoPath but I have no other choice than to take this route.&lt;/p&gt;
&lt;p&gt;Upon consultation with my client, a web service can&amp;#39;t be used, I&amp;#39;m therefore left with going back and forth between Sql server and InfoPath&lt;/p&gt;
&lt;p&gt;So in essence what I need to do is create code to make this feasible. Can code be created to filter the records before it enters the form so that not all 100,000 records need be brought in? Does anyone know how and if this can be done? If not, then are there any alternatives other than a web service?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Alpha&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>