1) That isn't PL/SQL that you executed - that is plain ANSI SQL.
2) The convention is to start variable names with a lowercase, so you might want to change OraConnection to oraConnection.
The design of your program is wrong. You do not need to do any of that OraConnection=null and then checking that OraConnection isn't null business - if there is a problem setting OraConnection in your program, then the exception handling should take care of it. If there was no exception thrown, then you can assume that it is fine and proceed.
1) That isn't PL/SQL that you executed - that is plain ANSI SQL.
2) The convention is to start variable names with a lowercase, so you might want to change OraConnection to oraConnection.
Thanks, that worked well, I am falling for every thing in the book, trying to come back up to speed.
And yes, that's indeed plain ANSI SQL, but I do have reams of old PL/SQL and TSQL though
I don't think that's going to work on SQL Server though, I don't think the ojdbs understands Class.forname(), this is what I have to do next.