MSSQL server 2016 (SP2) or higher version is not connecting after Sql Alchemy 1.4.15 version #8689
Answered
by
zzzeek
sidnaik03
asked this question in
Usage Questions
-
Describe the bugSql server 2016(SP2) successfully connecting up to sql alchemy 1.4.15 version. All version above 1.4.15 throws a connection error. To Reproducefrom sqlalchemy import *
conn_str = 'mssql://USER:passsword@10.126.30.13:1433/ERPDB?driver=ODBC Driver 17 for SQL Server'
conn = create_engine(conn_str, echo=True)
conn.connect()
row = conn.execute('select count(*) from dbo.TEST')
print(row.rowcount)ErrorWhen I installed version 1.4.16 I got below error If I changed my sql alchemy version to 1.4.15 or lower its connecting properly Versions
Additional contextI have tried to connect using only through pyodbc and its connected successfully. |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Oct 20, 2022
Replies: 1 comment 1 reply
-
|
hi please ensure you dont have an unescaped @ sign in your password please read: https://docs.sqlalchemy.org/en/14/core/engines.html#escaping-special-characters-such-as-signs-in-passwords |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sidnaik03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi
please ensure you dont have an unescaped @ sign in your password
please read: https://docs.sqlalchemy.org/en/14/core/engines.html#escaping-special-characters-such-as-signs-in-passwords