Chapter1SecuringYourServerandNetwork (12): protects linked servers

Source: Internet
Author: User
Source: blog. csdn. netdba_huangzjarticledetails38438363, topic Directory: blog. csdn. netdba_huangzjarticledetails37906349 no one shall publish in the original form or use it for commercial purposes without the consent of the author. I am not responsible for any legal liability. Previous Article: B

Source of the original article: without the consent of the author, no one shall publish in the original form or use it for commercial purposes. I am not responsible for any legal liability. Previous Article: http: // B

Source: Workshop

Without the consent of the author, no one shall be published in the form of "original" or used for commercial purposes. I am not responsible for any legal liability.

Previous Article: http://blog.csdn.net/dba_huangzj/article/details/38398813

Preface:

Linked Server allows two different SQL Server instances to communicate with other types of RDBMS. By connecting to the server, you can implement distributed queries. Similar to an application, you can store the connection strings of the target server in advance.

The linked Server can reference remote SQL Server, or any other data source that supports OLEDB Provider installed on the machine where SQL Server is located.

Note the following when creating a linked server. This article will introduce

Implementation:

1. in SQL Server Management Studio, open the Server Object node, right-click link Server, and click New link Server ]:

2. Select the name and data provider. If SQL Server at the end of the target Server page, enter the Instance name of the target Server and select SQL Server as the Server type:

Source: http://blog.csdn.net/dba_huangzj/article/details/38438363

3. on the "Security" Page, map the required logon accounts. If you have the same account name and password as remote logon, select "simulate". In this way, SQL Server does not need to store the password in the configuration:

4. Select how to handle accounts not defined in the ing list:

Do Not establish a connection (Not be made) Do not create a connection for undefined logon in the list.
Do not use security context to establish a connection (Be made without using a security context) Specifies that no connection is established using the security context for undefined logon in the list.
Use the current security context of the login name to establish a connection (

Be made using the login's current security context)

Specify to use the current security context of logon to establish a connection for undefined logon in the list.

If you use Windows authentication to connect to the local server, use Windows creden。 to connect to the remote server.

If you use SQL Server authentication to connect to the local Server, you need to use the login name and password when connecting to the remote Server.

In this case, a logon with the same name and password must exist on the remote server.

Use this security context to establish (Be made using this security context) For undefined logon in the list, use the logon name and password specified in the "remote Logon" and "use password" boxes to establish a connection.

Remote logon must be an SQL Server Authentication logon on the remote Server.

Source: http://blog.csdn.net/dba_huangzj/article/details/38438363

Principle:

The linked Server stores the connection string in the SQL Server instance and defines how to access the linked Server. From the security perspective, it is best to restrict access in the ing list and select [not recommended connection ].

Source: http://blog.csdn.net/dba_huangzj/article/details/38438363

More:

If you use a client to connect to SQL Server and run queries by connecting to the Server or by simulating a list, you must configure the following:

The Windows Account must have the permission to access the linked server. In the Active Directory, the [Account is sensitive and cannot be delegated] Option cannot be selected. Each Server must have already registered an SPNs in the domain environment, and the SQL Server service account must be [trusted for delegation] in the Active Directory]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.