Disable the remote connection function of sqlserver

Source: Internet
Author: User
Tags microsoft sql server 2005 mssqlserver

Today, I checked the network connection status (netstat/ano) on the server and saw a bunch of TIME_WAIT connections, all of which were connected to port 1433. Obviously this is a malicious connection, therefore, to ensure the security of the server database, it is necessary to disable the remote connection function of the database, and the database and website are deployed on the same machine, so the use is not affected.

To disable a remote connection, follow these steps:

1>. Point to "start-> Program-> Microsoft SQL Server 2005-> Configuration tool-> SQL Server peripheral application configurator"
2>. On the "SQL Server 2005 peripheral application configurator" page, click "service and connected peripheral application configurator"
3>. Click "database engine", select "remote connection", and select "local connection only" on the right ".
Click "application" and you will see the following message: "the changes made to the connection settings will not take effect until the Database Engine service is restarted .", Click OK to return
4> Expand "Database Engine", select "service", click "stop" on the right side, wait until the MSSQLSERVER service is stopped, and then click "start" to restart the MSSQLSERVER service.

After the remote connection is disabled, you may need to change the database connection parameters of Web. config. The server in connectionString must be changed to. (One Point), but neither nor localhost nor IP address can be changed.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.