Question : web enabled infopath form not able to fetch the data from SQL Server

I have created a web enabled infopath form.
Now my form has a drop down box which gets the data from the SQL Server to fill.
This form is published on the sharepoint site.

When i run this form with in the infopath client it works fine but when i try to run from my sharepoint site it doesn't get the data instead gives the error.
---------------------------------------------
An error occurred accessing a data source.

An entry has been added to the Windows event log of the server.
Log ID:6932
----------------------------------------------

i read online and tried various options but still not able to make it working. I created the UDC file and upload that in the DLC and tried connecting it that way but still doesn't work for me.

please suggest the best possible solution.

Answer : web enabled infopath form not able to fetch the data from SQL Server

For a browser based form you must use a UDC.

In the designer use the convert button on the data connection and make sure the UDC works that way.

The other problem you can run into is that if the SQL is not on the same server as Sharepoint the permissions do not get passed correctly. Since InfoPath Form Services is actually hosting the form it does not send your credentials to external servers correctly.

This is a known issues with IIS called "double hop"  you can research this term to find more info.

www.infopathdev.com is a good resource.
Random Solutions  
 
programming4us programming4us