ODBC

Matthias Huening matthias.huening at univie.ac.at
Thu Jun 29 06:15:53 EDT 2000


Hi,

I use the ODBC module that comes with Marc Hammond's winall.
Everything works fine; I open a connection, do something, close the
connection, like this:

import odbc

conn = odbc.odbc(DSN)
cur = conn.cursor()
sql = "SELECT col FROM table"
cur.execute(sql)
x = cur.fetchall()
cur.close()
conn.close()

The problem: when I try to open another connection in the same script
(after I closed the first one), Python crashes. Any ideas?

Matthias

--
matthias.huening at univie.ac.at
http://www.ned.univie.ac.at/dt/






More information about the Python-list mailing list