<> wrote...
> 1) Is it mandatory that in JDBC a SP be called by a CallableStatement?
Yes, although "some" JDBC-drivers could provide other means...
> For example, a SELECT statement can be built and
> executed at runtime, could this also be done for a SP?
That depends on the actual JDBC-driver, but I would say that it should work
in most cases.
But the creation of an SP is "just" a statement (CREATE PROCEDURE...), so
you should use a simple "execute(...)" on a simple "Statement" for that.
> 2) Does a SP need to be installed into the DB before being invoked?
By its nature an SP is an element in the database, so I can't see how it
would be possible to call it otherwise... ?
There's a reason why it's named *stored* procedures...
// Bjorn A