Unable to connect to SQL Server 2000 remotely

Source: Internet
Author: User
Tags mssqlserver
1. Ping the Server IP address.

This is to see whether the physical connection to the remote SQL Server 2000 Server exists. If not, check the network and view the configuration. Make sure that the remote SQL Server
2000 the Server IP address is correctly spelled.

2. Enter the IP port of the Telnet server in DOS or command line to check whether the port can be connected.

For example, Telnet 1433

Generally, the port value is 1433, because 1433 is SQL Server.
The default listening port of 2000 for TCP/IP. If there is a problem, this step usually has a problem. The common prompt is "... Unable to open the connection, connection failed ".

If there is a problem with this step, check the following options.

1. Check whether the remote server has started the SQL Server 2000 Service. If not, start.

Check whether the TCP/IP protocol is enabled on the server, because remote connection (via the Internet) depends on this protocol. The check method is to open the Start menu on the server-> Program -> Microsoft SQL
Server-> server network utility to check whether the enabled Protocol has the TCP/IP protocol. If not, enable it.

Check whether the server's TCP/IP Port is configured as port 1433. Check the TCP/IP attribute in the enabled protocol in the server network utility to make sure that the default port is 1433 and the check box of the hidden server is not checked.

In fact, it is okay if the default port is modified, Client Do
During the Telnet test, the server port number must be consistent with the port number configured on the server. If the "Hide server" check box is selected, the client cannot see this service by enumerating the server.
But does not affect the connection. However, the default port of TCP/IP protocol is implicitly changed to 2433.

If the operating system on the server has been patched with SP2, you must configure Windows Firewall and open port 1433 to it, you can usually turn off the Windows Firewall directly during testing (Other firewalls are also the best ).

5. Check whether the server is listening on port 1433. If the server does not listen on port 1433 of the TCP connection, it cannot be connected. The check method is to input

Netstat-a-n or netstat-An. Check whether TCP 1433 listening is available in the result list.
. If not, you usually need to patch SQL Server 2000 with at least SP3. In fact, start the query analyzer on the server and enter select @ version
After the script is executed, you can see the version number. All Versions earlier than 8.0.2039 must be patched.

If there is no problem, then Telnet Server IP address 1433 again.
Test, you will see the screen flashing, the cursor in the upper left corner of the non-stop flashing. Congratulations, you can start to connect to the Enterprise Manager or query analyzer immediately.

Iii. Check client settings

Program> Microsoft SQL Server>
Client Network Tools. Make sure that the client TCP/IP protocol is enabled, as in the server network utility, and the default port is 1433 (or other ports, consistent with the server ).

4. In the Enterprise Manager or query the analyzer connection test

Enterprise Manager-> right-click sqlserver group-> Create sqlserver registration-> next-> Write Remote IP-> next
-> Select sqlserver login-> next-> write login name and password (SA, password)-> next-> complete

Query analyzer-> file-> connection-> Write Remote IP-> write login name and password (SA, password)-> OK, usually Suggestions In the query analyzer, because by default, another SQL statement is registered through the Enterprise Manager.
Server timeout is set to 4 seconds, and the query analyzer is set to 15 seconds.

Modify the default connection timeout method:

Enterprise Manager> Tools> Options> SQL
In the "Server Enterprise Manager properties" window, click the "advanced" tab-> connection settings-> enter a large number in the box after logon timeout (seconds)

Query analyzer-> tool-> Option-> connection-> enter a large number in the box after logon timeout (seconds)

Generally, you can connect to IOT platform. If an error is prompted, proceed to the next step.

5. The error is generally caused by SQL Server's "Windows only" authentication method, so you cannot use SQL
Server login account (such as SA) to connect.
The solution is as follows:

1. Use the enterprise manager on the server side and Select "Use Windows Authentication" to connect to SQL Server.

2. Expand "SQL Server group", right-click the name of the SQL Server server, select "properties", and then select the "Security" tab.

3. Under "authentication", select "SQL Server and Windows ".

4. Restart the SQL Server service. (In DoS or command line, net stop MSSQLServer to stop the service, Net start
MSSQLServer is also a quick way to start the service ).

Note: When connecting to the local server, the named pipe protocol is usually used (this is enabled in the server network utility). The default port is 445, therefore, local connectivity cannot be explained. connecting to a remote server is a completely different protocol)

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.