It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes unable to connect to a SQL server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "unable to connect to a SQL server" Watch "unable to connect to a SQL server" New topic
Author

unable to connect to a SQL server

Kingsley Mullers
Ranch Hand

Joined: Jan 14, 2005
Posts: 48
hi there,

i'm trying to connect to a MS SQL Server 2000, and its giving this error:
"java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket". The port number is 1433 and the settings look fine as well.
when i ping it or telneting it i can talk to it but when trying out my code it gives me the above error. whats funny enough is i have another SQL Server that i can connect to which means my code is fine but when i put in the details of the other server is doesnt works, what could be the problem here, is it with the server box or maybe authentication

many thanks
basha khan
Ranch Hand

Joined: Jan 26, 2002
Posts: 516
Do u created a new instance of SQL server and trying to connect?.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: unable to connect to a SQL server
 
Similar Threads
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket
how to connect to SQL server 2000 in WSAD 5.1
Need to know Sql version.
Login failure Microsoft Sqlserver 2000
Different versions of SQL Server