MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2013

Re: Starting to experiment with Scott Klement's JDBCR4 -- what's the DB2/400 equivalent to MySQL "USE"



fixed

On 2/4/13 10:34 AM, Dan Kimmel wrote:
JDBC abstracts away this kind of difference between underlying
databases. Use (Connection)con.setSchema(String schemaName) rather
than trying to work out which database engine you are using. Don't
use the "SET SCHEMA" or "USE " statements. Let the driver work out
what is the appropriate statement.

Except that as of yet, JDBCR4 doesn't appear to have an RPG-callable front-end for setSchema. At least, not that I can see in a DSPSRVPGM or in the source member.

--
JHHL





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact