Solved

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

Posted on 2008-10-22
5
646 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
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

16 Experts available now in Live!

Get 1:1 Help Now