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 |
|
mirobraveheart
Starting Member
1 Post |
Posted - 2007-05-27 : 07:36:00
|
| hiiii tried to connect to sql server using jdbci faced an establishing socket errormy 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. |
 |
|
|
|
|
|