• Subject: Re: Accessing more that one library with JDBC Connection
  • From: Tom Heiber-Cobb <heibercobb@xxxxxxxxxx>
  • Date: Fri, 15 Oct 1999 14:48:16 -0500

I agree with Luther. Simply fully qualify the library you need to access. I
think the library naming scheme that can be included on the
java.sql.DriverManager.getConnection method merely means that you can
reference a table name without the library name. It's arguable that it's
better to have the library name on the SQL statement as a way of self
documenting the code. But just to be clear, is the example below the kind
of thing you're talking about?

dbConnect = java.sql.DriverManager.getConnection("jdbc:as400://" +
systemName + 
"/LIB1,LIB2,LIB3;naming=sql;errors=full;date format=iso",userid,password);

Also, check out this URL for possibly some insight:


Hope this helps.
        Tom H-C
At 03:25 PM 10/15/99 +0200, Luther wrote:

Perhaps you could just specify the library in the individual  SQL statements; 
e.g. { CALL MYLIB.PROC( ? ) } or SELECT * FROM LIB2.TABLE2 etc.  
Perhaps not what you mean, but it should do the  trick.  Luther     

-----Original Message-----
From:      THORN Serge (GVA) <Serge.THORN@lloydsbank.ch>
To:      <mailto:java400-l@midrange.com>java400-l@midrange.com 
Date:      Saturday, 16 October 1999 1:18
Subject: Accessing more that      one library with JDBC Connection

I could'nt manage how to set up the URL property list of an
java.sql.Connection in a such way that it could access several AS/400

Many thanks if someone can help      

-----End of Original Message-----

| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.