Re: [U2] JDBC - ClassPath - Victory

2010-03-24 Thread Brutzman, Bill
Ben: Thanks for the follow-up. I appreciate it. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ben Souther Sent: Tuesday, March 23, 2010 5:34 PM To: U2 Users List Subject: Re: [U2] JDBC - ClassPath

Re: [U2] JDBC - ClassPath - Victory

2010-03-23 Thread Brutzman, Bill
The following code works ok... Thanks to all those who responded especially John, Jeff, Bruce, Charles, Ben, and Mike. --Bill import java.sql.*; public class Uni_101 { public static void main(String[] args) { try { try {

Re: [U2] JDBC - ClassPath - Victory

2010-03-23 Thread Ben Souther
Glad it's working. Tip: You should always put the con.close() statement in a finally block. The close method itself can throw an exception so it needs to be in a nested try/catch. Putting in in a finally block insures that come Hello or high water the connection gets closed. One of the most