This works fully as expected.
import pyodbc
connection = pyodbc.connect("DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;DATABASE=test;UID=SA;PWD=<YourStrong@Passw0rd>", autocommit=True)
Why is this and what is going on?
However, when I try to connect with this connection string (I'm trying to setup Alembic) it does not work:
sqlalchemy.url = mssql+pyodbc://SA:<YourStrong@Passw0rd>@localhost/test?driver=ODBC+Driver+17+for+SQL+Server