I'm trying to access data from a database using pyodbc with this code:
import pyodbc
cnxn = pyodbc.connect("DSN=banco;uid=usuario;pwd=senha")
cursor = cnxn.cursor()
But when I run this error:
pyodbc.Error: ('IM014', '[IM014] [Microsoft] [ODBC Driver Manager] O Specified DSN contains an incompatibility of architectures between the Driver and Application (0) (SQLDriverConnect) ')
Does anyone know where I can fix this mismatch?