On Nov 24, 4:12 pm, mkleehammer <
mkleeham...@gmail.com> wrote:
> I've also seen that the driver names are not in English on some of the
> non-English boxes I have at work.
That's crazy...
> I would guess that the name of the driver should not be in English.
I tried to modify the name of the server, and it's the same: using
"Driver do Microsoft Access" instead of "Microsoft Access Driver"
works for .mdb files, but not for .accdb...
>>> DBfile = r'C:\temp\testdb2.mdb'
>>> conn = pyodbc.connect('DRIVER={Driver do Microsoft Access (*.mdb)};DBQ='+DBfile)
>>>
but
>>> DBfile = r'C:\temp\testdb1.accdb'
>>> conn = pyodbc.connect('DRIVER={Driver do Microsoft Access (*.mdb,*.accdb)};DBQ='+DBfile)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pyodbc.Error: ('IM002', '[IM002] [Microsoft][Gestor de controladores
de ODBC] O nome da origem de dados n\xe3o foi encontrado e n\xe3o foi
especificado nenhum controlador predefinido (0) (SQLDriverConnectW)')
>>>
No luck... Perhaps it's not really a language issue?