Can't connect to SQL Server from laptop, but works okay from desktop...

Roy Edwards 1 Reputation point
2022-11-23T02:23:02.877+00:00

I recently bought a new laptop (HP Pavilion) with Windows 11 Pro. I am trying to connect to the database at work and receive an error stating the server can't be found. I also have a desktop with Windows 10 Pro and the connection works just fine. Both computers are on the same network, both have the same VPN installed with identical settings. I've tried everything I can think of to no avail. The security on the server is based on user login, not IP address, and I'm logging in (or trying to) with the same credentials from each computer. I can access contents of shared folder and can ping the server successfully from both computers. Server is running MSSQL Server 2014, both computers trying to connect via MS Server Management Studio v.18.1. Does Windows 11 set some firewall settings different by default than Windows 10? If not that, what am I missing?

The error message is:

TITLE: Connect to Server


Cannot connect to SC-****\sql******.


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)

Thanks.

SQL Server | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,586 Reputation points
    2022-11-23T06:06:06.507+00:00

    Hi @Roy Edwards ,

    Welcome to Microsoft Q&A!

    A network-related or instance-specific error occurred while establishing a connection to SQL Server.

    Please refer to this document for troubleshooting: https://learn.microsoft.com/en-us/troubleshoot/sql/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Isaias 1 Reputation point
    2022-11-24T00:09:15.047+00:00

    Just to clarify, you are trying to connect to a sql server that is on a remote network through a VPN connection from your laptop or desktop.

    When you try to connect from your desktop everything is ok, but when you try to connect from your laptop, you can't connect.

    It might sound strange, but have you check what happens if you disable you AntiVirus or other security software like malwarebytes?, i have found that sometimes they work a little bit strange and can block some connections (even if firewall has and exception) if they're install on windows 11, but on windows 10 those things doesn't happen.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.