i am also trying to connect sql server with
java application.i got somthing from net but is donot work in muy code,i think it need some kind of driver.
Properties p=new Properties();
p.put("test","DRIVER={SQL Server};ServerName=sw8;UID=wh1;PWD=wh1");
String sConnect =new String("jdbc:sw8://192.168.0.11/,");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection(sConnect,p);