tags:

views:

306

answers:

2

I've tried the following:

>>> import pyodbc

>>> cnxn = pyodbc.connect(Driver="MDB", database="SohabeD51.mdb")
pyodbc.Error: ('08001', '[08001] [unixODBC]Could not find DSN in
                connect string (1) (SQLDriverConnectW)')

Connecting to a database using a DSN entry works fine, but I'd like to supply a database in the code.

A: 

Here's what you need: http://code.google.com/p/pyodbc/wiki/ConnectionStrings

Doesn't work with mdbtools.
Georg
A: 

No. Mdbtools 0.5 don't support this.

Georg