dbi.operation-error: blank in LOGIN

T

tallpaul

I'm trying to run the following on an xp box.

import dbi, odbc
try:
s = odbc.odbc('DSN/username/userpassword')
cur = s.cursor()
cur.execute('select * from tablename')
print cur.description
for tup in cur.description:
print tup[0],
print
while 1:
rec = cur.fetchmany(10)
if not rec: break
print rec
except NameError,e:
print 'error ', e, 'undefined'


Which comes back with the error message

dbi.operation-error: blank in LOGIN


Any suggestions would be greatly appreciated.

p
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top