<?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: SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124590.aspx</link><pubDate>Thu, 02 Dec 2021 17:27:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124590</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124590</wfw:commentRss><description>Oh yes, sorry, you had mentioned it worked in preview and I&amp;#39;d already forgotten that. I&amp;#39;ve done some additional web searches (and I&amp;#39;m sure you have too) but I&amp;#39;m not finding anything that seems applicable. I doubt a SQL Trace would provide any additional info that the logs haven&amp;#39;t, but I might try that, just see if there is anything different between Preview vs. the browser....</description></item><item><title>Re: SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124587.aspx</link><pubDate>Thu, 02 Dec 2021 15:56:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124587</guid><dc:creator>ocsnew</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124587</wfw:commentRss><description>Yes, the login is working from SSMS using the same credentials from the UDCX file. The data connection even works while in InfoPath edit / preview mode. The error only happens from the published form in the library.</description></item><item><title>Re: SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124586.aspx</link><pubDate>Thu, 02 Dec 2021 15:36:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124586</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124586</wfw:commentRss><description>Ohhhhh. Interesting. Super dumb question - you&amp;#39;ve verified the user name and password on the SQL 2016 server by logging in with that account? Like, in SSMS, or something? :)</description></item><item><title>Re: SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124584.aspx</link><pubDate>Thu, 02 Dec 2021 04:07:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124584</guid><dc:creator>ocsnew</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124584</wfw:commentRss><description>We checked the UDCX file and it has the passwords as well as approved in the Library. Central Admin is already configured properly.

Actually, I forgot to mention but previously, the form was already using a UDCX file to connect to a SQL 2008 R2 database successfully. We recently migrated the database to SQL 2016, updated the UDCX file connection string to point to the SQL 2016 DB instead. Then we get the error. When we switch it back to the previous UDCX file, it successfully connects again to the SQL 2008 R2 database.</description></item><item><title>Re: SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124582.aspx</link><pubDate>Wed, 01 Dec 2021 16:43:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124582</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124582</wfw:commentRss><description>Well ick. It seems like the form is able to find the UDCX file, since it is actually logging into the database..... I think I&amp;#39;d probably double check the manifest file (save the form as source files, open manifest.xsf in a text editor) and see if there is anything in the SQL connection stuff or the path to the UDCX that seems off. I also wonder if running a tool like Fiddler might show the query to the UDCX file (I&amp;#39;m not sure if it will) so you could verify that the form is actually using the data from the UDCX. Finally - is there any chance the UDCX file has been saved in more than one location, and one doesn&amp;#39;t have the password? Oh, or perhaps it isn&amp;#39;t approved in the library? Oh, one more thing I found online: SharePoint Central Admin -&amp;gt;general application settings-&amp;gt; Configure InfoPath Forms Services. Check the box next to Allow embedded SQL authentication</description></item><item><title>SharePoint 2010 published InfoPath form encounters data connection error to SQL2016</title><link>https://www.infopathdev.com:443/forums/thread/124578.aspx</link><pubDate>Tue, 30 Nov 2021 01:55:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124578</guid><dc:creator>ocsnew</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124578.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124578</wfw:commentRss><description>I have an InfoPath form published in SharePoint 2010. The form contains a data connection to a SQL Server 2016 database using a .udcx connection (uploaded in SharePoint).&lt;br /&gt;
&lt;br /&gt;
The problem is that when attempting to connect using the data connection, it throws the following error: &amp;quot;A database that contains data required for this form to function correctly cannot be found&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Upon checking the database server logs, the following is the error: &amp;quot;Login failed for user &amp;#39;username&amp;#39;. Reason: Password did not match that for the login provided. [CLIENT: clientname]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
However, please note that using the SAME credentials and connection file, it is able to successfully connect in the following cases:&lt;br /&gt;
- Connecting via SQL Server Management Studio (same credentials)&lt;br /&gt;
- Accessing Data Connection in InfoPath Edit Mode&lt;br /&gt;
- Accessing Data Connection in InfoPath Preview Mode&lt;br /&gt;
&lt;br /&gt;
It is only throwing out the error once the form is published.&lt;br /&gt;
&lt;br /&gt;
Can you please help or suggest ideas why the error occurs only for that specific situation?</description></item></channel></rss>