Chapter 1 Securing Your Server and Network (13): Configuring Endpoint Security

Source: Internet
Author: User

Original source: http://blog.csdn.net/dba_huangzj/article/details/38489765, featured folder:http://blog.csdn.net/dba_huangzj/article/details/37906349

Without the author's permission. No one should be published in the form of "original" or used for commercial purposes. I am not responsible for any legal liability whatsoever.

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

Objective:

SQL Server Endpoints (Endpoint) are portals that enter and leave SQL Server. Through the endpoint, no matter what can be transferred between the network and SQL Server. Endpoints can be defined by the system or by the user itself. System endpoints allow SQL Server to be connected using T-SQL and send queries.

The endpoint uses a specific protocol definition, which can be HTTP or TCP, from the beginning of SQL Server 2012 to the HTTP endpoint being removed from the built-in Web Services feature. Only TCP endpoints can be used.

You typically use your own endpoints to define the purpose:

    1. TCP requests.

      This article describes such a. Can be used to establish a private or secure SQL Server connection.

    2. Service Broker
    3. Database Mirroring
Realize:

1. Enter the following statement in the query form:

CREATE ENDPOINT Mytsqlendpoint state = started as TCP (   listener_port = 8080,   listener_ip = (127.0.0.1)   ) for TSQL ();


2. After running, you will receive a message such as the following, which means that all logins through the default T-SQL endpoint connection will lose all permissions, and you need to use the following statement to authorize:

GRANT CONNECT on Endpoint::[tsql Default TCP] to [public];


News:

Creating a TSQL endpoint will cause all ' public ' connection permissions on the ' TSQL Default TCP ' endpoint to be revoked. Assuming that the ' public ' access permission is required on this endpoint, use ' GRANT CONNECT on Endpoint::[tsql Default TCP] to [public] ' and apply this permission again.


3. Ability to query endpoint conditions using the following statement:

SELECT * from sys.tcp_endpoints;


4. Ability to start or stop endpoints using the ALTER ENDPOINT command:

ALTER ENDPOINT [TSQL Default TCP] state = STOPPED;


Principle:

When SQL Server installation is complete, the appropriate SQL Server system endpoint is created for each network protocol. Access to the endpoint is given to the public server role. Each SQL Server login has the public role permission and is able to authorize and recycle through the following statements:

REVOKE CONNECT on Endpoint::[tsql Default TCP] to [public]; GRANT CONNECT on Endpoint::[tsql Default TCP] to [a_specific_login];



Filed under: http://blog.csdn.net/dba_huangzj/article/details/38656615


Chapter 1 Securing Your Server and Network (13): Configuring Endpoint Security

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.