How to resolve Error 26 in SQL Server?

孤人 提交于 2019-12-12 03:47:41

问题


We're accessing our database with our server (another computer). Before, I'm able to connect with it but it suddenly stop and now I cant connect and I encounter this error which is error 26 Locating Server.

Others can connect with our server. I don't know what I've done or what I've change with my machine that causes me to not connect with our server. Can anyone suggest what should I do?

I'm using SQL Server 2008 R2.

By the way, I can access our server using Remote Desktop Connection but when I'm connecting using SQL Server 2008 R2, I really can't connect. I'm using the right server name but it doesn't work.

I've tried connecting to other server and It do work. What should I do? I don't know why it happened.


回答1:


Try flushing your DNS.

Open a DOS window to do this.

  1. Click Start Button
  2. Type CMD and press enter
  3. Type this into the black window that appears: ipconfig /flushdns and press enter you should see:

    Windows IP Configuration

    Successfully flushed the DNS Resolver Cache.

See if this does not correct your issue.




回答2:


I tried using the (IP address of the server)\SQLEXPRESS and it do work. Yet I still dont know why It cant access the instance name of the server.




回答3:


Be sure that SQL Server service is running. If SQL Server service is not running you can run it by:

  1. Opening Run Window (WINDOW+R) and type services.msc.
  2. Find the SQL Server and right click on it then click start.
  3. Try reconnecting again to your SQL Server

After that if it is still not running, Open your "Windows Defender Firewall with Advance Security" and add port 1433 both in inbound and outbound rules and make sure that you selected the allow connections.



来源:https://stackoverflow.com/questions/23621436/how-to-resolve-error-26-in-sql-server

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