简体   繁体   中英

infopath form in sharepoint can't lookup from SQL

I've made a simple form in infopath, that looks up information in SQL server.
Using the design tool, I can fill in the form and submit it. All info from SQL server is being retrieved.
The SQL server is used in many different scenario's and accessible through different means. In the first phase I'm using a read/write account to connect to the database.

When I publish it to sharepoint (2010), I get an error the first time the SQL data is being requested.
I get an error that refers to the windows error logs; but I do not have access to the sharepoint environment.
The sharepoint is installed in the same forest, it should be able to get a connection to our sql server.

are the BCS (business connectivity services) necessary for this kind of action?
are there any other reasons why this could fail?

If it's working on your machine in debug mode but not on the server I would check two settings:

  • Authentication settings as you might be getting a double hop problem .
  • Security on database, make sure the user has access to the database

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM