Hello everyone,
I am trying to connect an application in eclipse with sql server 2008. I cannot make the connections as I get errors. I have enabled TCP/IP connections , firewall has been blocked but still not working


import java.sql.*;
import com.microsoft.sqlserver.jdbc.*;
public class MetroWay {
public static void main(String[] args) {

Connection connection;

try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLSer verDriver");
connection = DriverManager.getConnection("jdbc:sqlserver://SQLEXPRESS");
System.out.println("Connection succeed!");
catch (Exception e) {

**SQLEXPRESS is the server for connection

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host SQLEXPRESS, port 1433 has failed. Error: "null. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
at com.microsoft.sqlserver.jdbc.SQLServerException.ma keFromDriverError(SQLServerException.java:171)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.c onnectHelper(SQLServerConnection.java:1033)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.l ogin(SQLServerConnection.java:817)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.c onnect(SQLServerConnection.java:700)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.conne ct(SQLServerDriver.java:842)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at MetroWay.main(MetroWay.java:11)