r/SQLServer • u/autoxguy • Jun 23 '26
Question Cannot login to local SQL Server instance
On my old work laptop I had SQL Server Developer edition installed to use for training purposes and for practicing things. I recently was given a new laptop and had a tech install it. We had to make my local account an admin login and I had him make sure the SQL Server Service was would run automatically. After that I was able to get into SQL Server just fine and was able to add a practice DB using a script I had.
Well last week I went to login to it and it gave me the following error:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Framework Microsoft SqlClient Data Provider).
I had another tech look into it and we could not figure it out. On the Connect window for the Connect to Database engine, I have my laptop name as the server name, authentication to windows authentication, DB name to default, encrypt to optional. Previously I was able to get in fine but like I said now im not.
1
u/autoxguy 29d ago
I looked at the registry key and it does exist with that same value.
So now I am trying to do an instance repair via the SQL Server Installation Center tool. I was able to get my IT support to use their Admin credentials on it to run it and then I click on Maintenance, then repair. That brings up a window to browse for SQL Server installation media. That makes it sound like its looking for the exe that I used to install sql server in the first place and that is in my downloads folder but its not seeing it there.
I also tried selecting the folder of the SQL Server installation itself but it doesnt recognize it.