Getting column names from a cursor using ODBC module?

dananrg at yahoo.com dananrg at yahoo.com
Sun Jun 22 18:11:55 EDT 2008


Thanks Chris and John. Chris, this worked perfectly with the ODBC
module that ships with Python Win32:

> column_names = [d[0] for d in cursor.description]

John, I've never heard of pyodbc but I'll have to look into it.

Thanks again.

Dana




More information about the Python-list mailing list