Solved

Infopath 2007 submitting to SQL

Posted on 2011-09-14
2
291 Views
Last Modified: 2012-05-12
We have several Infopath forms published to a Sharepoint 2010 server.  The Infopath forms submit data to a SQL 2008 R2 database, and this works fine for client PCs that are members of the domain.

When a user VPN's in and connects to Sharepoint from their home PC or laptop, however, the form loads in Infopath but fails to submit to SQL.  All field sales people have their own laptops that almost never are connected to the domain, and more than half of these laptops aren't even members of the domain.

I'm not sure where to start looking for where this is breaking.  The Infopath form has all of the data connections defined and submits data correctly for users that connect from a PC that is on the domain, but through VPN, I get the following error:

"Infopath cannot connect to the data source, access is denied."

Is this permissions submitting to SQL?  Is there a way to embed credentials to submit to SQL into the infopath form?  The latter sounds like a bad idea from a security standpoint, but how do others work it so that VPN users can connect to a Sharepoint intranet and fill out Infopath forms that submit to a database?  I can't be the first person to try to do this.

Any help is appreciated.
0
Comment
Question by:jkeegan123
2 Comments
 
LVL 7

Accepted Solution

by:
arduk earned 500 total points
ID: 36540205
I am not sure if this will help, but it may be worth having a look at your alternate access mapping settings - I have seen this cause issues with data connections before, but it was generally when users were connecting using different urls, which may not be the case for you.

Also, check what zone the site is coming up in when users try to connect using the VPN.

You need to try to establish where the access denied message is coming from - is it on the SQL server (the sql logs should show you if it is), or is it before this?

May be worth doing a network trace (using something like wireshark) to check what traffic is coming and going, and particularly what urls are being used

Not really an answer, but may help get you on the right track?
0
 
LVL 5

Author Closing Comment

by:jkeegan123
ID: 36895757
Issue was the SQL server not getting resolved by VPN clients, a host file entry fixed this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

758 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

17 Experts available now in Live!

Get 1:1 Help Now