ODBC Connection on Windows XP

Andrew MacIntyre andymac at bullseye.apana.org.au
Tue Jan 4 06:12:32 EST 2005


On Mon, 3 Jan 2005, Greg Lindstrom wrote:

> I am running Python 2.3 on Windows XP and am trying to connect to an
> ODBC datasource.  I have done this many times on this same box but this
> time I get an error message saying
>
> dbi.operation-error: [WSOCK32.DLL]Connection refused, is the host
> listener running? (#10061) in LOGIN
>
> Not having seen this before, and having used the odbc module for about a
> year now, I'm at a quandary; what does this mean and what do I do to fix it?

Exactly what it says... the host you're trying to connect to has refused
your connection attempt (at the TCP level).  At a guess, the database is
down.

-------------------------------------------------------------------------
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia



More information about the Python-list mailing list