<?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: Performance Issues</title><link>https://www.infopathdev.com:443/forums/thread/38034.aspx</link><pubDate>Tue, 03 Feb 2009 12:05:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38034</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=38034</wfw:commentRss><description>&lt;p&gt;Hello Patrick and thanks for the response.&amp;nbsp; I took a hard look at your Database Accelerator and even presented a proposal to our CIO regarding its implementation.&amp;nbsp; Unfortunately, we are a homebuilder and as I am sure that you are aware, we aren&amp;#39;t exactly swimming in cash right now and IT spending is all but zero.&amp;nbsp; There were technical issues that created obstacles as well, but primarily it was a cost issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I fill out the form and save it to my desk top, it is about 64kb - pretty small I think.&amp;nbsp; Additionally, all of my tables already have indexes on them.&lt;/p&gt;
&lt;p&gt;I have never created a web service, but I think that I might take a stab at it if it really is the way to go.&lt;/p&gt;
&lt;p&gt;As always, thanks for the input.&lt;/p&gt;</description></item><item><title>Re: Performance Issues</title><link>https://www.infopathdev.com:443/forums/thread/37995.aspx</link><pubDate>Tue, 03 Feb 2009 01:19:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37995</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=37995</wfw:commentRss><description>&lt;p&gt;Too bad you didn&amp;#39;t use our Database Accelerator Web Service. &lt;/p&gt;
&lt;p&gt;Seems like the query is pulling too much data down, so I&amp;#39;d look at restricting the query. Too bad that InfoPath doesn&amp;#39;t pass parameterized filtering of SQL. That&amp;#39;s why you really should have done this via a Web Service (which would allow that), but anyway, here are some ideas ...&lt;/p&gt;
&lt;p&gt;Look at how big the form is. Do file save after it opens and measure the size of the XML. If it&amp;#39;s really large, then the query is pulling down too much data. You&amp;#39;ll want to restrict it by using some filters either by editing the SQL text and adding some hardcoded filters or by creating a new form that calls a Web Service which maps to your existing database. &lt;/p&gt;
&lt;p&gt;If the data is not large, consider indexing the keys in your database. You can run SQL Analyzer to see what&amp;#39;s going on when the query is run, but it will require some SQL guru to decipher the info. &lt;/p&gt;
&lt;p&gt;Send us a &lt;a class="" href="http://www.qdabra.com/products_all.asp?cat=12"&gt;support pack&lt;/a&gt; and one of our guys can spend an hour looking at it. &lt;/p&gt;
&lt;p&gt;Most importantly, next time you&amp;#39;ll want to use a Web Service.&lt;/p&gt;
&lt;p&gt;I hope this helps!&lt;/p&gt;</description></item><item><title>Performance Issues</title><link>https://www.infopathdev.com:443/forums/thread/37975.aspx</link><pubDate>Mon, 02 Feb 2009 16:02:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37975</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=37975</wfw:commentRss><description>&lt;p&gt;Hello Everyone.&amp;nbsp; I am having some serious performance issues.&amp;nbsp; I am running IP2007, SQL 2005 and C# behind the form.&amp;nbsp; I have a SQL database with 7 tables to submit and retrive.&amp;nbsp; When I created the form, i created a new balnk form based on a database.&amp;nbsp; I then selected the database, added the tables and built the relationships.&amp;nbsp; I left the SQL statement that IP created for me alone, but was left wondering about some of the syntax - shape and append and all that.&amp;nbsp; I don&amp;#39;t know much about SQL, but it looked very clunky to me.&amp;nbsp; At any rate, after I had the form up and running things were great for awhile, but after a couple of months, I have been having some serious performance issues.&amp;nbsp; At first, my query took about 4 seconds to complete.&amp;nbsp; The main table had about 21K records and others had a comparable number, but three of them had zero records - this is where most of my submit data goes.&amp;nbsp; As those latter three tables start to fill up, the query time gets longer and longer now taking 55-65 seconds to complete.&amp;nbsp; I know that it is these last three tables due to some quick sleuthing.&amp;nbsp; If I create a new form based on the same database and just add one table at a time and test the query after each add, the query completes very quickly up until I add the first of the last three tables and just gets worse from there.&amp;nbsp; The kicker is that each of those tables contain less than 2K records each.&amp;nbsp; The first three contain over 20K each.&amp;nbsp; What gives?&amp;nbsp; I work with a guy that &amp;#39;used to work with SQL&amp;#39; and he says that my SQL statement is suspect, but can add no assistance as to why.&amp;nbsp; It seems as though the performance degrades more every day and it is causing my users to pull their hair out and curse me.&amp;nbsp; Does anyone have any ideas where to go next?&lt;/p&gt;
&lt;p&gt;Here is a sample of my SQL statement:&lt;/p&gt;
&lt;p&gt;shape&lt;br /&gt;&amp;nbsp;{select &amp;quot;BuyerNumber&amp;quot;,&amp;quot;mnBuyerNumber_201&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;Buyers&amp;quot; as &amp;quot;Buyers&amp;quot;} as &amp;quot;Buyers&amp;quot;&lt;br /&gt;&amp;nbsp;append&lt;br /&gt;&amp;nbsp;&amp;nbsp;({select &amp;quot;BuyerPhoneID&amp;quot;,&amp;quot;BuyerNumber&amp;quot;,&amp;quot;PhoneType&amp;quot;,&amp;quot;Phone&amp;quot;,&amp;quot;Preferred&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;BuyerPhones&amp;quot; as &amp;quot;BuyerPhones&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;BuyerNumber&amp;quot; TO &amp;quot;BuyerNumber&amp;quot;) as &amp;quot;BuyerPhones&amp;quot;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;({select &amp;quot;LotNumber&amp;quot;,&amp;quot;szCommunity_201&amp;quot;,&amp;quot;BuyerNumber&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;Lots&amp;quot; as &amp;quot;Lots&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;BuyerNumber&amp;quot; TO &amp;quot;BuyerNumber&amp;quot;) as &amp;quot;Lots&amp;quot;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;((shape&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{select &amp;quot;WorkOrderNumber&amp;quot;,&amp;quot;LongWorkOrderNumber&amp;quot;,&amp;quot;LotNumber&amp;quot;,&amp;quot;WorkOrderType&amp;quot;,&amp;quot;BuyerNumber&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;WorkOrders&amp;quot; as &amp;quot;WorkOrders&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;append&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;({select &amp;quot;AvailabilityID&amp;quot;,&amp;quot;WorkOrderNumber&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;WorkOrderAvailability&amp;quot; as &amp;quot;WorkOrderAvailability&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;WorkOrderNumber&amp;quot; TO &amp;quot;WorkOrderNumber&amp;quot;) as &amp;quot;WorkOrderAvailability&amp;quot;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((shape&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{select &amp;quot;ConcernID&amp;quot;,&amp;quot;WorkOrderNumber&amp;quot;,&amp;quot;ServiceItemNumber&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;WorkOrderConcern&amp;quot; as &amp;quot;WorkOrderConcern&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;append&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;({select &amp;quot;InfoID&amp;quot;,&amp;quot;ConcernID&amp;quot;,&amp;quot;UpdatedInfo&amp;quot;,&amp;quot;DateUpdated&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;WorkOrderConcernInfo&amp;quot; as &amp;quot;WorkOrderConcernInfo&amp;quot;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;ConcernID&amp;quot; TO &amp;quot;ConcernID&amp;quot;) as &amp;quot;WorkOrderConcernInfo&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;WorkOrderNumber&amp;quot; TO &amp;quot;WorkOrderNumber&amp;quot;) as &amp;quot;WorkOrderConcern&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;relate &amp;quot;BuyerNumber&amp;quot; TO &amp;quot;BuyerNumber&amp;quot;) as &amp;quot;WorkOrders&amp;quot;&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;</description></item></channel></rss>