如何在SQL Server 2014中创建到SharePoint网站的链接服务器

时间:2022-03-13 15:40:29

I keep reading articles online that say this is possible but nothing that says how to do it. I have an SQL Server 2014 server and I want to create a linked server to a SharePoint site. I can go to Server Objects > Linked Server > New but then I don't know what to do.

我一直在网上阅读文章,说这是可能的,但没有说明如何做到这一点。我有一个SQL Server 2014服务器,我想创建一个链接服务器到SharePoint站点。我可以去服务器对象>链接服务器>新,但我不知道该怎么做。

1 个解决方案

#1


0  

Follow the steps below:

请按照以下步骤操作:

1.Open SQL Server Management Studio, enter the name of your local SQL Server, and then select Connect.

1.打开SQL Server Management Studio,输入本地SQL Server的名称,然后选择“连接”。

2.Expand Server Objects, right-click Linked Servers, and then select New Linked Server. To see Server Objects, connect to a local on-premises SQL Server. Then, Server Objects should be displayed.

2.展开“服务器对象”,右键单击“链接服务器”,然后选择“新建链接服务器”。若要查看服务器对象,请连接到本地本地SQL Server。然后,应显示服务器对象。

3.In the Linked server text box, enter the full network name of the SQL Server you want to link to.

3.在“链接服务器”文本框中,输入要链接到的SQL Server的完整网络名称。

4.Under Server type, select SQL Server.

4.在“服务器类型”下,选择“SQL Server”。

5.In the left pane, select Security. In this step, you map the local account you created to the remote server login.

5.在左侧窗格中,选择“安全性”。在此步骤中,将您创建的本地帐户映射到远程服务器登录。

6.Select Add, and enter the following:

6.选择添加,然后输入以下内容:

a.Under Local Login, select the local account you created.

a。在本地登录下,选择您创建的本地帐户。

b.Check Impersonate if the local login also exists on the remote server.

b。如果远程服务器上也存在本地登录,请检查模拟。

c.Alternatively, if the local login will be mapped to a remote SQL Server login you, enter the Remote User name and Remote Password for the remote server login.

c。或者,如果本地登录将映射到远程SQL Server登录,请输入远程用户名和远程服务器登录的远程密码。

7.In the left pane, choose Server Options. Set the RPC and RPC Out parameters to True, and then select OK.

7.在左侧窗格中,选择“服务器选项”。将RPC和RPC Out参数设置为True,然后选择“确定”。

Articles: https://docs.microsoft.com/en-us/biztalk/core/how-to-create-a-linked-server

文章:https://docs.microsoft.com/en-us/biztalk/core/how-to-create-a-linked-server

https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine

https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine

If you want to access SharePoint data from other application, I suggest you use SharePoint API(CSOM(C#), REST API or web service) to achieve it.

如果要从其他应用程序访问SharePoint数据,我建议您使用SharePoint API(CSOM(C#),REST API或Web服务)来实现它。

Complete basic operations using SharePoint client library code

使用SharePoint客户端库代码完成基本操作

Complete basic operations using SharePoint REST endpoints

使用SharePoint REST端点完成基本操作

#1


0  

Follow the steps below:

请按照以下步骤操作:

1.Open SQL Server Management Studio, enter the name of your local SQL Server, and then select Connect.

1.打开SQL Server Management Studio,输入本地SQL Server的名称,然后选择“连接”。

2.Expand Server Objects, right-click Linked Servers, and then select New Linked Server. To see Server Objects, connect to a local on-premises SQL Server. Then, Server Objects should be displayed.

2.展开“服务器对象”,右键单击“链接服务器”,然后选择“新建链接服务器”。若要查看服务器对象,请连接到本地本地SQL Server。然后,应显示服务器对象。

3.In the Linked server text box, enter the full network name of the SQL Server you want to link to.

3.在“链接服务器”文本框中,输入要链接到的SQL Server的完整网络名称。

4.Under Server type, select SQL Server.

4.在“服务器类型”下,选择“SQL Server”。

5.In the left pane, select Security. In this step, you map the local account you created to the remote server login.

5.在左侧窗格中,选择“安全性”。在此步骤中,将您创建的本地帐户映射到远程服务器登录。

6.Select Add, and enter the following:

6.选择添加,然后输入以下内容:

a.Under Local Login, select the local account you created.

a。在本地登录下,选择您创建的本地帐户。

b.Check Impersonate if the local login also exists on the remote server.

b。如果远程服务器上也存在本地登录,请检查模拟。

c.Alternatively, if the local login will be mapped to a remote SQL Server login you, enter the Remote User name and Remote Password for the remote server login.

c。或者,如果本地登录将映射到远程SQL Server登录,请输入远程用户名和远程服务器登录的远程密码。

7.In the left pane, choose Server Options. Set the RPC and RPC Out parameters to True, and then select OK.

7.在左侧窗格中,选择“服务器选项”。将RPC和RPC Out参数设置为True,然后选择“确定”。

Articles: https://docs.microsoft.com/en-us/biztalk/core/how-to-create-a-linked-server

文章:https://docs.microsoft.com/en-us/biztalk/core/how-to-create-a-linked-server

https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine

https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine

If you want to access SharePoint data from other application, I suggest you use SharePoint API(CSOM(C#), REST API or web service) to achieve it.

如果要从其他应用程序访问SharePoint数据,我建议您使用SharePoint API(CSOM(C#),REST API或Web服务)来实现它。

Complete basic operations using SharePoint client library code

使用SharePoint客户端库代码完成基本操作

Complete basic operations using SharePoint REST endpoints

使用SharePoint REST端点完成基本操作