Start New Discussion within our Software Development Community

I new to python . I created the one console application in python for that i used two data bases IBM_DBI and POSTGRESQL8.4. I converted the console application into windows exe for that i used py2exe. It is created, while running the exe it coudn't connect with DB2 data base it give the Following error

DB2 Connetion Failederror return without exception set
DB2 Connetion Failed[IBM][CLI Driver] SQL10007N Message "0" could not be retriev
ed. Reason code: "6". SQLCODE=-1393

My code is mention in snippet. MY question what i want to added to above code for resolving above error. Please any one can help me in advance

Thanks in advance,
Ramesh R.

from distutils.core import setup
import glob
import py2exe


Code which is not tested to function Ok belongs to discussion thread. Just that you know next time.