I have a python script which has worked fine, but if I upgrade SQLalchemy to a version newer than 1.4.15 (or that is the last working I have) then I get the error:
sqlalchemy.exc.InterfaceError: (pyodbc.InterfaceError) ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')
My connection in python looks like this:
import sqlalchemy
from sqlalchemy import create_engine
#Create connection to SQL
NAV = 'mssql://<server>/<database>?driver=SQL+Server+Native+Client+11.0?trusted_connection=yes'
engine = create_engine(NAV, fast_executemany=True)
If I downgrade SQLalchemy to 1.4.15 it works just fine again.
Any ideas as I would like not to be stuck on an old version forever :-)