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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 establishing socket error

Author  Topic 

mirobraveheart
Starting Member

1 Post

Posted - 2007-05-27 : 07:36:00
hiii
i tried to connect to sql server using jdbc
i faced an establishing socket error
my code is::
DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connect = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:6013;databaseName=Northwind","","");

the error is::
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.

how can i solve it?
thanks

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-27 : 22:18:54
Try with sql instance name instead of localhost.
Go to Top of Page
   

- Advertisement -