user476566
user476566

Reputation: 1349

SQL Server Express : how to allow remote connections

I am trying to allow remote connections for SQL Server Express. When I connect from machine A to connect to SQL Server on machine B using Visual Studio, I get an 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

I followed the following steps below which did not help.

In fact I tried by turning off firewalls entirely but no luck. Any suggestions ?

Upvotes: 6

Views: 17224

Answers (1)

Jonathan Byers
Jonathan Byers

Reputation: 167

You need to open the SQL Server Configuration Manager and enable TCP/IP. This is not enabled by default. Port 1433 will need to be open for remote connections.

  • SQL Server Configuration Manager
    • SQL Server Network Configuration
    • Protocols for $InstanceName
    • Right hand pane select TCP/IP and enable

Upvotes: 10

Related Questions