Db2 connection from Python using ibm_db
Ever watch the Web Console or a list of connections to the the database and wondered who or what was "db2jcc_application"?
I Just discovered how to set connection options using ibm_db connections and put my applications name in so it shows in the application lists.
here's a code example
Here's a link to other possibilities
https://github.com/ibmdb/python-ibmdb/wiki/APIs#ibm_dbconnect
scroll down and the example sets options. Nice! AUTOCOMMIT? CLIENT, etc.
Comments
Post a Comment