This content has been marked as final.
Show 1 reply
-
1. Re: connection problem with microsoft driver
andcerve Nov 15, 2001 7:07 AM (in response to doritc)Hi,
try the classic connection code:
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
con = DriverManager.getConnection(url,username,password);
// ...
} catch(SQLException ex) {
System.out.println("SQLException: " + ex.getMessage());
}
catch(ClassNotFoundException e) {
System.out.println("ClassNotFoundException: "+ e.getMessage());
}
Hope this help.
Bye