On Thu, Jun 27, 2019 at 12:56 PM Kevin Bucknum
<Kevin@xxxxxxxxxxxxxxxxxxx> wrote:

My connections look like this. db2conn = db2.connect("DATABASE=*LOCAL"). Try adding the DATABASE= portion to yours.

The connection can be specified in multiple ways. One way is by a
single string which contains all the necessary information within it
(which is what you've shown). Another is by keyword parameters,
similar to the way CL parameters work.

If the connection is being made from PASE, though, it's all moot,
because then parameters are not necessary at all, if you are using a
recent enough version of `ibm_db_dbi`.

And if you're not connecting from PASE, then you really ought to be
using `pyodbc` rather than `ibm_db_dbi` anyway.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2021 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.