question about gettting a database connection from the DriverManager class
Posted on 2007-03-23
When I try and get a connection using the driverManager class and I pass in an incorrect suprotocol name I get an sqlexception which is fine. But if my subname is incorrect I don't get an exception?
Why is this?
String subprotocol = "correct:";
con = DriverManager.getConnection(subprotocol+subname);
catch (SQLException se)
//print some loggging info