Solved

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

Posted on 2008-10-22
5
651 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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