Connect To Database
mxODBC XXXX XXXX X.X.X.X
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/groups/opt_out.
-- Linux registered user #475536 Ubuntu registered user #28583
D:\XXX\XX\XXX>python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ibm_db
>>> ibm_db_conn = ibm_db.connect('ibm_db', 'XXX', 'XXX')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SQLCODE=-1531M][CLI Driver] SQL1531N The connection failed because the name specified with the DSN connection string keyword could not be found in either the db2dsdriver.cfg configuration file or the db2cli.ini configuration file. Data source name specified in the connection string: "IBM_DB".
(Also, I have added the dbapiModuleName - "ibm_db" in connectionmanager.py of DatabaseLibrary
Do, I need to update any other files. Could you please let me know the exact steps.
Thanks in Advance
Parimala
Type "help", "copyright", "credits" or "license" for more information.
>>> import ibm_db
>>> ibm_db_conn = ibm_db.connect('pydev', 'db2inst1', 'secret')
>>> import ibm_db_dbi
>>> conn = ibm_db_dbi.Connection(ibm_db_conn)
>>> conn.tables('SYSCAT', '%')