Hello!
I have a problem.
I have created a form in InfoPath 2003, and it queries from two SQL tables that have a one-to-many relationship. We're using Microsoft SQL Server 2005. After a form is filled out, it can be submitted to SharePoint WSS 2007.
In trying to solve the "plain text file" password problem, we decided to try using Windows Authentication, since all our users are on the intranet. I have a login for myself set up on MS SQL Server, and when I use it to open a form in SharePoint, it works fine.
I added another user, with the same settings (I think), and he also tried to open the form from SharePoint. He got the usual password/trusted connection dialog box, and it gave him an error. When he hit "OK," it gave him the same box, and then the form came up but most of the data was missing. The available data was from my testPoints table, the "many" side of the one-to-many relationship.
I am willing to try something else to deal with the password problem, or even store the password in plain text if there's not actually any way for the users to access that file's contents. I am also trying to avoid any custom code if remotely possible.
The error is here:
InfoPath cannot open the following file: Form%20Name%20-%202011-09-13T13_40_19.xml.
InfoPath cannot open the form. To fix this problem, contact your system administrator.
Form template: http://intrashpt/formName/Form%20Name/Forms/template.xsn
The following DataObject either cannot be created or cannot be initialized: testMatrix The query cannot be run for the following DataObject: testMatrix InfoPath cannot run the specified query.
[0x80040E09][Microsoft OLE DB Provider for SQL Server] SELECT permission denied on object 'testPoints', database 'FormTestPlan', schema 'dbo'.
[0x80040E14][Microsoft OLE DB Provider for SQL Server] Deferred prepare could not be completed.
testMatrix is "one" and testPoints is "many" in the one-to-many relationship, if that's relevant. Thanks.