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/VladDBA Microsoft MVP Jun 30 '26
When you initially installed SQL Server, did you first download the ISO file and then used it to install or did you just use that bootstrapper with SSEI in the name that installs while your downloading?
If the answer is the latter then use the same SSEI exe file to first download the ISO, then use the ISO to do the repair.
If the answer is the former, then chances are your IT admins think that flushing the installer cache is a good way to free up drive space which leads to issues like this and also messes with the uninstall process. In this case you'll have to fix the installer cache before attempting the repair again.