问题
I am not able to connect to a remote SQL Server.
I have done the following:
Enable TCP/IP protocol
turned Off the firewall
Start SQL Server Browser service.
But I'm still not able to connect to the server
Server Name:--ip\SQLSERVER
User--UserName
Pwd--PWd
回答1:
I would do the following checks.
- Enable TCP/IP protocol
- Turn off the firewall on the server (don't know whether you turned off your client firewall or server firewall here)
- Remote server is up and running
- Remote server SQL server services are started and running a) SQL Server agent b) SQL Server (SQLSERVER)
- Client machine is able to ping remote server (This is not mandatory. If ping is not working still it is possible to access server. If ping is working then one less thing to worry)
- Finally post your error message if you get any, that will help us understand more clearly what could be wrong.
回答2:
If you haven't already, try the following:
- In Management Studio, right-click your server, and click Properties
- Go to the Connections page and make sure Allow remote connections to this server is checked
- Click on the Security page and, under Server authentication make sure that SQL Server and Windows Authentication mode is selected.
Also, make sure that both the server and client are using the same IP version (IPv4
or IPv6
)
来源:https://stackoverflow.com/questions/11376277/cant-connect-to-remote-server