![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]()
(chat, newsreader, calendar)
|
![]() |
|
Course Notes Table of Contents | Exercises JDBC Short Course Index | Online Training Index
| ||||||||
Connecting with Properties | ||||||||
Working Applet | Help Solution
| ||||||||
Skeleton CodeThis exercise results in an application that connects to an ODBC database through the JDBC-ODBC Bridge. You have to run it from the command line, rather than from a page in a browser. Also, you have to ensure that the database server is enabled. Instead of hardcoding a datasource, username, and password in the program, an external file is used for this information. This is the method for the remaining exercises.
Perform the following tasks:
Load the sun.jdbc.odbc.JdbcOdbcDriver class. Create a Connection to the DriverManager. Examine the database metadata to display the name and version of the database and driver.
|
Copyright © 1997 MageLang Institute. All Rights Reserved May-97 Copyright © 1996, 1997 Sun Microsystems Inc. All Rights Reserved |