<?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: Database Connection with 2 tables - slooowww</title><link>https://www.infopathdev.com:443/forums/thread/50492.aspx</link><pubDate>Mon, 11 Jan 2010 13:44:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50492</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50492</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m glad someone else thinks it odd too.&amp;nbsp; When you run the same queries through SQL Management Console...12 seconds over the WAN.&amp;nbsp; We will try to put in the foreign keys and see if that helps.&amp;nbsp; I&amp;#39;m doubtful.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Database Connection with 2 tables - slooowww</title><link>https://www.infopathdev.com:443/forums/thread/50471.aspx</link><pubDate>Sat, 09 Jan 2010 00:00:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50471</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50471</wfw:commentRss><description>&lt;p&gt;Odd, odd, odd. And in SQL, if you run a query that joins those tables the same way you do in the form, what happens? As far as I know you shouldn&amp;#39;t see an issue because you don&amp;#39;t have keys defined, but it probably wouldn&amp;#39;t hurt anything to add them and see if there is a difference.&lt;/p&gt;</description></item><item><title>Re: Database Connection with 2 tables - slooowww</title><link>https://www.infopathdev.com:443/forums/thread/50441.aspx</link><pubDate>Fri, 08 Jan 2010 14:48:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50441</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50441</wfw:commentRss><description>&lt;p&gt;Thanks for replying Hilary.&lt;/p&gt;
&lt;p&gt;We did what you suggested.&amp;nbsp; We created a new form.&amp;nbsp; Connected to only one table.&amp;nbsp; Speed was great.&amp;nbsp; Then we changed the data connection to retrieve from the second table.&amp;nbsp; Speed was great.&amp;nbsp; Then we changed the data connection to include both tables and the bottleneck appeard as it does in the regular form.&lt;/p&gt;
&lt;p&gt;Are there any rules like foreign keys have to be defined in SQL Server?&amp;nbsp; We link the tables when we setup the data connection but foreign keys are not defined.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any suggestions are greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;E&lt;/p&gt;</description></item><item><title>Re: Database Connection with 2 tables - slooowww</title><link>https://www.infopathdev.com:443/forums/thread/50416.aspx</link><pubDate>Thu, 07 Jan 2010 23:27:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50416</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50416</wfw:commentRss><description>&lt;p&gt;What happens if you create a new form with the tables linked? Comparing like to like? I&amp;#39;m wondering if there isn&amp;#39;t something else in your form causing the slowness, and that may be a way to start testing.&lt;/p&gt;</description></item><item><title>Database Connection with 2 tables - slooowww</title><link>https://www.infopathdev.com:443/forums/thread/50324.aspx</link><pubDate>Tue, 05 Jan 2010 19:04:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50324</guid><dc:creator>ek38</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50324</wfw:commentRss><description>&lt;p&gt;We use a form on our WAN.&amp;nbsp; In one of our plants, our 2 table data connection takes &lt;strong&gt;&lt;em&gt;&lt;u&gt;minutes&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; to retrieve 1-4 rows of data.&lt;/p&gt;
&lt;p&gt;PurchaseOrders &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POItems&lt;/p&gt;
&lt;p&gt;The field that links them together is an integer field called PRID&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I create a new form and search on just PurchaseORders by PRID - 5 second retrieval &lt;strong&gt;&lt;em&gt;&lt;u&gt;GREAT&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If I create a new form and search on just POItems by PRID - 5 second retrieval &lt;em&gt;&lt;strong&gt;&lt;u&gt;GREAT&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If I use the form where both tables are linked to the MainDataConnection (retrieve and submit), - 3 minutes. &lt;strong&gt;&lt;em&gt;&lt;u&gt;BAD&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;WE ARE&amp;nbsp;HOPING THERE IS A WAY TO FIX THIS WITHOUT RE-DESIGNING THE FORM.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>