Connection error to Access database

前端 未结 3 713
醉梦人生
醉梦人生 2021-01-21 15:39

I wrote the program which by means of pyodbc is connected to Access to that it was very glad. Help me please.

import pyodbc
#import kinterbasdb
import firebirdsq         


        
3条回答
  •  执笔经年
    2021-01-21 15:57

    The driver name you specified...

    DRIVER={Microsoft Access Driver (*.accdb)}

    ...is incorrect. There is no ODBC driver with that name. 32-bit applications that want to open an older .mdb database file can use

    Driver={Microsoft Access Driver (*.mdb)}

    To open an .mdb file from a 64-bit application, or to open an .accdb file from any application, you need to use

    Driver={Microsoft Access Driver (*.mdb, *.accdb)}

提交回复
热议问题