Domanda

I am trying to connect to a DB.

enter image description here

But I get an error:

Connection verification failed for data source: dwh_trgt_care

java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: pasdwdb01:3003. Reason: Connection refused: connect

The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: pasdwdb01:3003. Reason: Connection refused: connect

I can't figure out why it thinks it should be connecting to 3003

Addendum

This is the first time I have connected to and SQL Server 2008 R2

È stato utile?

Soluzione

When using a SQL named instance, SQL server will negotiate communications over a dynamically assigned port by default. It can also be configured to use a specified port however.

See this related question/answer - port number of SQL Server

Also this - Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)

If enabled, the default instance of the SQL Server Database Engine listens on TCP port 1433. Named instances of the Database Engine and SQL Server Compact are configured for dynamic ports. This means they select an available port when the SQL Server service is started.

If you do need to open up a port on your firewall then you might want to assign a specific port instead of opening up a range of ports.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top