问题
Okay so a lot of people have posted a similar question, however I don't seem to be able to find a solution to my problem in any of them. So this is my situation.
Yesterday I was working with my SQL Server Express through SQL Server Management Studio. I close my projects as I've done multiple times before and then this morning when I tried to connect again with the tool is gives me this error:
TITLE: Connect to Server
Cannot connect to .\SQLExpress.
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
I think my main question here is if there is a solution to this problem, or if I have to install SQL Server Express all over again?
PS: Here are some system stats. I'm working on a Windows 10 machine, and the SQL Server Management Studio version is 2014.
回答1:
Open SQL Server Configuration Manager
Click on
SQL Server Network Configuration
and click onProtocols for Name
Right click on
TCP/IP
(make sure it is Enabled), click onProperties
Select
IP Addresses
Tab and go to the last entry:IP All
Enter
TCP Port 1433
.
Now restart "SQL Server .Name." using services.msc
(winKey + r)
回答2:
I had the same problem but a different solution. My protocols was configured correctly but I was still getting the problem. In SQL Server Configuration Manager make sure that the SQL Server Browser is configured to start automatically and is running. As soon as the service was active my problem disappeared.
来源:https://stackoverflow.com/questions/33893089/sql-network-interfaces-error-26-error-locating-server-instance-specified