|
Home > Archive > SQL Server JDBC > May 2005 > SQLServer 2000 Driver for JDBC Error establishing socket.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
SQLServer 2000 Driver for JDBC Error establishing socket.
|
|
|
| Hi,
I run the java application in console window and it is able to connect to
SQL 2000 server with JDBC. I put those mssqlserver.jar driver files to
jre1.4/lib/ext.
It has firewall and antivirus software and still able to connect to SQL 2000.
However, I got [Microsoft][SQLServe
r 2000 Driver for JDBC]Error establishing
socket when i run the java application with classpath.
I closed firewall and antivirus software, check the SQL 2000 port is the
same.
So, how should i fix the problem now?
Thanks
| |
| Kamil Sykora [MSFT] 2005-05-09, 8:23 pm |
| Hello Tom,
The error you are getting is indicative of a connection problem after the
driver has been loaded so it should not be related to specifying the
classpath in a different way. If the problem was with the classpath, the
error message would indicate that the driver was not found.
Can you provide more detail about how you are executing the program in a
"console window" vs. "with classpath"? (Operating system, VM, exact
command-line of how you launch the program etc)
How are you specifying the server? By name/IP?
Can you also provide a full callstack of the exception?
Thanks,
Kamil
Kamil Sykora
Microsoft Developer Support - Web Data
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/secur_ity.
--------------------
| From: =?Utf-8?B?VG9t?= <Tom@discussions.microsoft.com>
| Subject: SQLServer 2000 Driver for JDBC Error establishing socket.
| Date: Thu, 28 Apr 2005 00:20:01 -0700
|
| Hi,
|
| I run the java application in console window and it is able to connect to
| SQL 2000 server with JDBC. I put those mssqlserver.jar driver files to
| jre1.4/lib/ext.
|
| It has firewall and antivirus software and still able to connect to SQL
2000.
|
| However, I got [Microsoft][SQLServer 2000 Driver for JDBC]Error
establishing
| socket when i run the java application with classpath.
|
| I closed firewall and antivirus software, check the SQL 2000 port is the
| same.
|
| So, how should i fix the problem now?
|
| Thanks
|
|
|
|
|
|
|