Attempts to establish a connection to the given database URL. The DriverManager attempts to select an appropriate driver from the set of registered JDBC drivers.
Parameters: url - a database url of the form jdbc:subprotocol:subname user - the database user on whose behalf the connection is being made password - the user's password Returns:
a connection to the URL Throws: SQLException - if a database access error occurs
>>42
I meant getConnection public static ConnectiongetConnection(String url, String user, String password)
throws SQLException
Attempts to establish a connection to the given database URL. The DriverManager attempts to select an appropriate driver from the set of registered JDBC drivers.
Parameters: url - a database url of the form jdbc:subprotocol:subname user - the database user on whose behalf the connection is being made password - the user's password Returns:
a connection to the URL Throws: SQLException - if a database access error occurs
This thread is already a raging inferno, but I'd like to point out I knew what was wrong after one look at the javadocs despite not knowing how to just Java ODBC. So, OP, if you want any genial advice, just learn how to parse every single facet of the javadocs and not take a line of it for granted.