将 Sharepoint 2010(外部内容类型)连接到 MSSQL 链接服务器
我似乎无法从 Microsoft Sharepoint 2010 的外部内容类型定义屏幕中连接到链接服务器数据库。
当我使用 SQL Server Management Studio 访问链接服务器时,它工作正常:
SELECT * FROM MyLinkedServer.MyCatalog.MyDatabase.MyTable
返回所有记录都很好。
但在 Sharepoint 中我选择“外部内容类型”,我创建了一个;在下一个屏幕上,我单击“外部系统,单击此处检测外部数据源..”(或类似的内容)。
- Add connect/datasource
* Datasourcetype: SQL server
* Databaseserver: MySQLServerIP\InstanceName (ex. 192.168.1.2\SQLEXPRESS)
* Databasename: MyLinkedServer.MyCatalog.MyDatabase (ex. AS400.COMPANY1.ERPSYS)
* Name (optional): <Empty>
* Select 'Connect using the user-id (first option)'
- OK.
错误:
无法连接到 LobSystem(外部系统)无法打开数据库 “AS400.COMPANY1.ERPSYS 登录请求。登录失败。登录 用户“MYDOMAIN\me”失败。
我对 SQL Management studio 和 Sharepoint 使用相同的用户。我应该有权访问链接服务器。我已为 MYDOMAIN\me 的链接服务器设置了特定凭据。
我可以直接连接到 SQL 数据库(不在链接服务器上)。
有什么想法吗?
I can't seem to connect to my linked server database from within the external content type definition screen in Microsoft Sharepoint 2010.
When I access my Linked Server from with SQL Server Management Studio, it works fine:
SELECT * FROM MyLinkedServer.MyCatalog.MyDatabase.MyTable
returns all the records just fine.
But in Sharepoint I choose "External Content Type", i create one; On the next screen I click "External system, click here to detect external datasources .." (or something similiar).
- Add connect/datasource
* Datasourcetype: SQL server
* Databaseserver: MySQLServerIP\InstanceName (ex. 192.168.1.2\SQLEXPRESS)
* Databasename: MyLinkedServer.MyCatalog.MyDatabase (ex. AS400.COMPANY1.ERPSYS)
* Name (optional): <Empty>
* Select 'Connect using the user-id (first option)'
- OK.
ERROR:
Cannot connect to the LobSystem (external system) Cannot open database
"AS400.COMPANY1.ERPSYS requested by the login. The login failed. Login
failed for user 'MYDOMAIN\me'.
I use the same user for SQL Management studio and Sharepoint. I should have permission to access the Linked Server. I've set the specific credentials for the Linked Server for MYDOMAIN\me.
I can connect directly to a SQL database (which is not on a linked server) though..
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有类似的任务,我发现以下网站非常有用。
http://wyldesharepoint.blogspot.com/2010/06 /external-content-types-reload-setting.html
之后您可能还需要配置BDC模型元数据的权限,所以我使用
http://www .zimmergren.net/archive/2010/05/08/access-denied-by-business-data-connectivity-solution.aspx
让我知道您的进展如何?
杰康
I had a similar task and I found the following site very useful.
http://wyldesharepoint.blogspot.com/2010/06/external-content-types-reload-setting.html
You may also need to configure the permissions on the BDC Model Metadata after that, so I used
http://www.zimmergren.net/archive/2010/05/08/access-denied-by-business-data-connectivity-solution.aspx
Let me know how you get on?
JK
您必须将 SQL Server 上的用户映射到 AS400 用户,或者始终使用同一用户连接到 AS400。检查链接服务器定义上的安全设置。
You'll have to map users on SQL Server to your AS400 users or always connect with the same user to the AS400. Check security settings on your linked server definition.