i want to connect Microsoft SQL Server database which is running in windows autentication mode using JDBC from my java program
I tried with this both methods( i am not providing username and password)
1)Class.forName("net.sourceforge.jtds.jdbc.Driver" );
Connection c = DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/Mydatabase");

2)Class.forName("com.microsoft.sqlserver.jdbc.SQLS erverDriver");
Connection c = DriverManager.getConnection("jdbc:sqlserver://localhost:1433");

it's giving 14562 sql error code
pls any body help me out from this