Quote (carteblanche @ Nov 17 2015 02:36am)
just go ahead and query the data after you make the connection. post your jdbc call with your exception.
I'm not sure if this is even close but this is the code I had after:
// try to load the JDBC-ODBC driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
out.print("About to try to connect to ODBC DSN: " + dbUrl + "<br /><br />");
//try to connect to database using the above Strings
connection = DriverManager.getConnection(dbUrl, user, password);
out.print("Connected to ODBC DSN: " + dbUrl + "<br /><br />");
}
catch(Exception e)
{
out.print("Could Not Connect to ODBC DSN: " + dbUrl + "<br /><br />" + e.toString());
}
Select ProductID FROM dbo.Products, somethign along those lines after that