i am trying to connecto sql server 2005 using the following code,where in the sql server configuration tool
i have allowed named pipes,and TCP/IP (and in the "IP ADRESS" TAB i have changed all the IP's to ENABLED and ACTIVE= YESbut nothing helps!!!!!!!
if i connect to the sql server form VB.NET everything is working ok
so where is the problem i nthe connection between java and sql 2005?
thnaks in advance
peleg
Java Code:
C:\Program Files\Java\jdk1.6.0_01\bin>java Test
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the ho
st  has failed. java.net.ConnectException: Connection refused: connect
        at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(U
nknown Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknow
n Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover
(Unknown Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Sour
ce)
        at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:582)
        at java.sql.DriverManager.getConnection(DriverManager.java:207)
        at Test.main(Test.java:19)