yuzx wrote:
>>> conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='ibmdb2')
but i don't know about dsn,
If the database is DB2/400 and you try to connect from iSeries, dsn
would be '*local' for local database, or its name (not hostname or IP
address!) as returned by dsprdbdire command
yuzx wrote:
anyone can help me ?
this might help:
http://www6.software.ibm.com/reg/devworks/dw-db2pylnx-i?S_TACT=104AHW03&S_CMP=EDU
jacek
--
http://mail.python.org/mailman/listinfo/python-list
yuzx wrote:
i try to connect to db2 use python,i find it on
python-db2 doc:
$ python
>>> import DB2
>>> conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='ibmdb2')
>>> curs = conn.cursor()
but i don't know about dsn,
It's the host name. In a former project (using