Solved

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

Posted on 2008-10-22
5
648 Views
Last Modified: 2012-08-13
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.
0
Comment
Question by:vaijain
  • 2
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 22785768
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.
0
 

Author Comment

by:vaijain
ID: 22786082

Let me give you a better picture of the SharePoint Set.
I have 3 server (Application Server, Web Server and SQL Server)

So yes, SQL Server is not on the same server as Share Point (is it called as cross domain?). All though the SQL server is with in the company domain (network).

Now I have tried UDC file ... is it mandatory to provide any kinda credentials to be passed in UDC and if yes then in which tag of the UDC?
0
 
LVL 28

Assisted Solution

by:clayfox
clayfox earned 500 total points
ID: 22801511
Yes you have to setup cross domain if it is not in the same IIS site.
Or you need to not secure the data but put the security in the form.
Or you need kerberos I beleive will jump across.
0
 

Author Comment

by:vaijain
ID: 22897087
So, If i have to use the cross domain method to connect to the SQL Server... what are the steps?
Can you send me some link which can give me some step by step process of doing so.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
A short film showing how OnPage and Connectwise integration works.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now