sqlalchemy, a db connection module for Python, uses SQL Authentication (database-defined user accounts) by default. If you want to use your Windows (domain or local) credent
I think that you need to put:
"+pyodbc" after mssql
try this:
from sqlalchemy import create_engine engine = create_engine("mssql+pyodbc://user:password@host:port/databasename?driver=ODBC+Driver+17+for+SQL+Server") cnxn = engine.connect()
It works for me
Luck!