Technical Support
Discussion Forum
Online Training
Read About Java
Java In-Depth
Product Discounts
Membership Information JDC Resources DukeDollars

Java Cup Logo

JDC Home Page

JDC Applets
(chat, newsreader, calendar)

Log Out

Online Training
shadowSearchFAQFeedback

Course Notes Table of Contents | Exercises
JDBC Short Course Index | Online Training Index

Behavior: SQL Warning/Exception Handling
Working Applet | Help
Solution

This program cannot be run as an applet.
Please run Solution/ErrorProne from the command line
as an application. Running the solution results in the following being printed,
when using the Text ODBC driver as the database:

If an invalid driver name is provided or the class cannot be found, 
   the ClassNotFoundException is thrown.
0:08001:No suitable driver
Connected.
[Microsoft][ODBC Text Driver]Invalid connection string attribute foo
[Microsoft][ODBC Text Driver]Invalid connection string attribute foo
[Microsoft][ODBC Text Driver]Invalid connection string attribute foo
Supports Entry Level ANSI92 SQL
Supports Minimum SQL Grammar
Inserting the hard way
Inserted: John:Math
Inserted: Mary:Math
Inserted: Tom:Math
Inserted: Tom:English
Inserted: John:English
Inserted: Mary:English
Inserted: Tom:Science
Inserted: John:Science
Inserted: Mary:Science

While Personal Oracle displays:

If an invalid driver name is provided or the class 
  cannot be found, the ClassNotFoundException is thrown.
0:08001:No suitable driver
foo=bar option failed
Connected.
Supports Entry Level ANSI92 SQL
Supports Core SQL Grammar
Students2 table doesn't exist yet.
Inserting the easy way




Copyright © 1997 MageLang Institute. All Rights Reserved
May-97 Copyright © 1996, 1997 Sun Microsystems Inc. All Rights Reserved