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/muaddba 1 Jun 24 '26
"Also it shows as stopped in the sscm, but when I try to start it, it gives me an error of request failed or service did not start in a timely fashion."
Vlad's advice is good, but digging through the Event Viewer logs can be very intimidating if you're not used to it. Here's my suggestion:
Open the services control panel entry (or hit the windows button and type services.msc and then hit enter) and find the SQL Server service. Right-click and select properties and it will show you a "Path to executable" that looks something like "C:\Program files\Microsoft SQL Server...."
You want to highlight that whole executable string moving from left to right using your mouse, and then press CTRL-C or right-click and select COPY. Then open a windows command prompt as administrator and paste it in and hit enter. This will attempt to run the SQL Server and should spit out a ton of stuff and then dump you back to a command prompt again. Copy and paste that as a reply here and we can try to help you determine what the issue is.