I am trying to access ms sql server 2000 using jdbc, the code compiled but produce this kind of error:

Code:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establi
hing socket.
        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Sourc
)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source

        at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown So
rce)
        at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
ource)
        at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
        at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:193)
        at org.apache.jsp.addvideo$jsp._jspService(addvideo$jsp.java:66)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe
vlet.java:202)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
82)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:243)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja
a:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:201)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:566)
        at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValv
.java:246)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja
a:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java
2344)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:164)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:566)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatch
rValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:564)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:564)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java
462)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja
a:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:163)
        at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipelin
.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.ja
a:472)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943

        at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcess
r.java:1011)
        at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.j
va:1106)
        at java.lang.Thread.run(Thread.java:534)


Here is my full code I'm using jsp for accessing the database


Code:
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--
.style1{color: #FF0000}
-->
</style>
</head>

<body>
<%
	String title = request.getParameter("Title");
	String price = request.getParameter("Price");
	ResultSet rs = null;
	try{
	DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
	Connection connection =	DriverManager.getConnection("jdbc:microsoft:sqlserver://WIN-WBL8VT0HEPJ:1433","sa","sa");
	if (connection != null)
	{
		System.out.println("Succesfully connected");
		Statement stmt = connection.createStatement();
		String query = "Insert into Video (Title, Price) values('" + title + "','" +price+ "')";
		stmt.executeUpdate(query);

		query = "select * from Video";
		rs = stmt.executeQuery(query);
%>
<h4 class="style1">.: A new video titled: <%= title %> has been added with a price of <%= price %> :.</h4>
<hr>
You currently have the following videos:
<table width="50%" border="1">
	<tr>
		<td><div align="center"><strong>Title</strong></div></td>
		<td><div align="center"><strong>Price</strong></div></td>
	</tr>
<%
	while(rs.next()){
%>
	<tr>
		<td><%= rs.getString("Title") %></td>
		<td><%= rs.getString("Price") %></td>
	</tr>
<%
	}
	stmt.close();
	connection.close();
}
}catch(Exception e)
{
	System.err.println("Cannot connect to database server");
	e.printStackTrace();
}
%>
</table>
<div align="center"><br>
	<a href="video.html">back</a>
</div>
</body>
</html>
Anyone know what is wrong?