Skip to content
Advertisement

Can’t connect Sqlalchemy with pyodbc to SQL Server 2000

I followed this website by installing

After install I try this code and it worked, it print all records from table2

However, I want to use SQLAlchemy with pyodbc and it does not work

ProgrammingError: (pyodbc.ProgrammingError) (‘42000′, “[42000] [FreeTDS][SQL Server]’schema_name’ is not a recognized function name. (195) (SQLExecDirectW)”) [SQL: SELECT schema_name()] (Background on this error at: https://sqlalche.me/e/14/f405)

How can I connect this?

Advertisement

Answer

SQLAlchemy 1.4 does not support SQL Server 2000. Use pip install sqlalchemy==1.3.24.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement