<?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: Not Able to Pull Data From a SQL Database</title><link>https://www.infopathdev.com:443/forums/thread/29052.aspx</link><pubDate>Thu, 29 May 2008 23:01:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29052</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=29052</wfw:commentRss><description>&lt;p&gt;The basics would be just to set up a new form, with the data connection to load when opened,&amp;nbsp;and then just dump the whole data set on a view as a repeating table to verify the data is being pulled in and the issue is not in script.&lt;/p&gt;</description></item><item><title>Re: Not Able to Pull Data From a SQL Database</title><link>https://www.infopathdev.com:443/forums/thread/29049.aspx</link><pubDate>Thu, 29 May 2008 21:13:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29049</guid><dc:creator>David P</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=29049</wfw:commentRss><description>&lt;p&gt;Those were all great suggestions. I checked the security and it is good. I am using a secondary connection and querying it via JScript. &lt;/p&gt;
&lt;p&gt;I did try the final suggestion of recreating a form. I got a new error message:&lt;br /&gt;The following error occurred: 
&lt;p&gt;&amp;#39;XDocument.DOM.selectSingleNode(...)&amp;#39; is null or not an object&lt;br /&gt;File:script.js&lt;br /&gt;Line:86 &lt;/p&gt;
&lt;p&gt;I checked to see if my code was sending correct values by setting a XDocument.UI.Alert. The form sees the original variable value (xxxx). It sends the correct SQL to the database. But the database returns no values.&lt;/p&gt;
&lt;p&gt;I can forward the form and jscript if you would like to see it.&lt;/p&gt;</description></item><item><title>Re: Not Able to Pull Data From a SQL Database</title><link>https://www.infopathdev.com:443/forums/thread/29047.aspx</link><pubDate>Thu, 29 May 2008 20:07:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29047</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=29047</wfw:commentRss><description>&lt;p&gt;That should not be a problem.&lt;/p&gt;
&lt;p&gt;I would verify the permissions on the view in SQL for the user&amp;#39;s account, that is the most common.&lt;/p&gt;
&lt;p&gt;Is this a secondary connection or a main data connection? Are you actually sending a query parameter?&lt;/p&gt;
&lt;p&gt;Another test would be to create a new blank form and see if that works, that would tell you if the issue is in the form or with the connectivity.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Not Able to Pull Data From a SQL Database</title><link>https://www.infopathdev.com:443/forums/thread/29042.aspx</link><pubDate>Thu, 29 May 2008 19:27:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29042</guid><dc:creator>David P</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=29042</wfw:commentRss><description>&lt;p&gt;I have created a InfoPath form that queries a datasource for a a user and then auto populates other fields on the form. I orginally designed this using an MS Access database and everything worked perfectly. I changed the datasources to point to a SQL database (The SQL view&amp;#39;s structure&amp;nbsp;is identical to the Access table)&amp;nbsp;and now I get no results. Has anyone seen this before?&lt;/p&gt;</description></item></channel></rss>