Solution-sql Server Remote connection failed

Source: Internet
Author: User
Tags mssqlserver

When the computer room charging system is released offsite, it is necessary to ensure that the database can be connected remotely, but usually the error occurs when connecting:

To solve this problem, you first need to check several settings for SQL Server. (These settings are usually system defaults, but it's best to look at them)

(a) Check whether SQL Server allows remote links. logged in as SQL Server authentication mode. Login account SA

( two ) Open Configuration Manager and check Microsoft SQL Server ( MSSQLServer ) of the TCP/IP Protocol whether to open .

Make sure the above settings are correct and make the final SQL Server firewall settings (most of the problems are here)

One, can directly shut down the firewall, but this is not safe, not recommended.

    II, find Microsoft sql server ( Span lang= "ZH-CN" style= "Font-family:tahoma" >mssqlserver ) tcp /IP protocol sql Server firewall is already running, click " tcp/ip Protocol" SELECT Properties

< Span lang= "ZH-CN" style= "Font-family:simsun" >          

from which we can see that this sql support on server TCP/IP The protocol is 1433 port. The next step is to allow 1433 tcp/ip protocol. Open Control Panel, select windows Firewall"--Advanced settings. Right click "Inbound rule (

when the new rule option is turned on, use the new built-in station The Rule Wizard is 1433 the port Configuration "internal binding protocol" is configured to apply to TCP/IP protocol.

Configuration process:

after you complete the steps above ,theSQL Server can support remote links . Give it a try!

  ┏〓〓┓┏〓〓┓     ┏〓〓┓┏〓〓┓┏〓〓┓
  ┃ technology ┃┃ share ┃ ---┃ accumulate ┃┃ point ┃┃ drop ┃
  ┗〓〓┛┗〓〓┛    ┗〓〓┛┗〓〓┛┗〓〓┛

Related Article

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.