Conversation
add note about SQL Browser service requirement when using sql express
|
Is it always port 1434? Can you double check this requirement? I've not had to do this myself before. |
|
yes. absolutely sure @MMatten What are the details of the !Connect fixture you're using? When I use this !Connect fixture, with SQL Browser Service in Stopped, I get an exception. com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the host localhost, named instance sqlexpress failed. Error: "java.net.SocketTimeoutException: Receive timed out". Verify the server and instance names and check that no firewall is blocking UDP traffic to port 1434. For SQL Server 2005 or later, verify that the SQL Server Browser Service is running on the host. |
|
What happens if you connect using the port number instead of the instance name with the browser service disabled? E.g.
|
|
@MMatten sql express binds to a random port by default. The SQL Server Client requires the SQL Browser service which operates on a single well-known port to provide resolution of Instance-Name to Port. Think of it like DNS... you trade a DomainName for IP address... You CAN force SQL Express to use Port 1433, but it's not the default. |
|
Thank you @jeremysimmons! |
add note about SQL Browser service requirement when using sql express
also changed previous instruction about enabling tcp/ip protocol. I'm not sure if there's a better way to indicate you could have multiple engine instances installed, and you need to enable for the one you're working with.