Can't connect to remote server

寵の児 提交于 2019-12-11 16:29:13

问题


I am not able to connect to a remote SQL Server.

I have done the following:

  1. Enable TCP/IP protocol

  2. turned Off the firewall

  3. 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.

  1. Enable TCP/IP protocol
  2. Turn off the firewall on the server (don't know whether you turned off your client firewall or server firewall here)
  3. Remote server is up and running
  4. Remote server SQL server services are started and running a) SQL Server agent b) SQL Server (SQLSERVER)
  5. 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)
  6. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!