<?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: InfoPath Crashes when SQL veiw linked to main data connection</title><link>https://www.infopathdev.com:443/forums/thread/68971.aspx</link><pubDate>Wed, 03 Aug 2011 23:37:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68971</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=68971</wfw:commentRss><description>&lt;p&gt;Sure sounds like a bug when it tries to infer the schema from the view. Maybe it&amp;#39;s the view and maybe it&amp;#39;s the schema that is being returned. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing you aren&amp;#39;t going to like me saying this, but we see hundreds of forms here annually and the database-backed forms are the most costly too maintain.&lt;/p&gt;
&lt;p&gt;The best practice is not to tightly couple your form to a SQL database or anything for that matter. Create an XML form and map it to SQL using a generic Web service or BCS. &lt;/p&gt;
&lt;p&gt;Save time and money - that&amp;#39;s the key. Database-backed forms will come back to bite you time and time again. &lt;/p&gt;</description></item><item><title>InfoPath Crashes when SQL veiw linked to main data connection</title><link>https://www.infopathdev.com:443/forums/thread/68965.aspx</link><pubDate>Wed, 03 Aug 2011 20:15:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68965</guid><dc:creator>Jtcom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=68965</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;In InfoPath 2007 I am creating a form that pulls data from a SQL 2008 database using the default query.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I can create the form linked to the data base as a main data source.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I can add 2 additional tables linked to the base table my form is connected to.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;That all works, and next I go to add a custom SQL view that one of our developers has written and link it to one of the tables with a relationship.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Finally, I hit “next” and then “finish” in the Data Connection Wizard and as soon as I hit the finish button I get a dialog box that tells me “Microsoft Office InfoPath has encountered a problem and needs to close.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;We are sorry for the inconvenience.” and asks me to send the information to Microsoft.&amp;nbsp; &lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:11pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;I have tried this on multiple computers and logged in with the highest permission account in the company, and neither made a difference.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Myself and several others have looked through all information the box provides, and looked up the fairly generic Office error the crash generates in the event log, and have been unable to find any details as to what is causing this crash every time I try to use this, or almost any other SQL view in InfoPath.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Anyone else encountered this issue while using SQL views to pull data from a SQL database?&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Or have any suggestions on where to look to fix this?&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Any information is appreciated as this is the final hurdle between us and a major improvement in the life of our users.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;P.S.&amp;nbsp; I tried to keep my description simple, maybe too much so, if further details would be helpful please let me know.&lt;/span&gt;</description></item></channel></rss>