Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
akalehzan
Starting Member
21 Posts |
Posted - 2007-10-12 : 12:19:09
|
Dear All,Using JDBC trying to connect MS SQL server 2005. Getting the following error:org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Network error IOException: Connection refused: connectjava.sql.SQLException: Network error IOException: Connection refused: connectjava.net.ConnectException: Connection refused: connectorg.apache.commons.dbcp.DbcpException: java.sql.SQLException: Network error IOException: Connection refused: connectjava.sql.SQLException: Network error IOException: Connection refused: connectjava.net.ConnectException: Connection refused: connect Here is the TCP/IP setting in our SQL server 2005:I disable the Windows 2003 R2 firewall, but that didn’t help.In SQL server 2005 for Remote connections:Enabled “Local and Remote connections: Using both TCP/IP and Named PipesIn TCP/IP Prosperities:IP Addresses:IP1: Active: YesEnabled: YesIP address: the server IP address Example 192.168.0.1TCP Dynamic port: 0TCP Port: 1433///IP2: Active: YesEnabled: YesIP address: the server IP address Example 192.168.0.1TCP Dynamic port: 0TCP Port: 1433////IP3: Active: YesEnabled: YesIP address: the server IP address Example 192.168.0.1TCP Dynamic port: 0TCP Port: ///IP4: Active: YesTCP Dynamic ports: 1053TCP Port: For Protocols:Under general:Enable: YesKeep Alive: 30000Listen ALL: YesNo Delay: NoI think that should be enough info to start with.Please advice.Thanks for any help.Abrahim |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-10-12 : 23:15:31
|
| Change port number under ip4 to 1433 then restart sql. What's your connection string? Can you ping sql server from that machine? |
 |
|
|
|
|
|