1

Is there an equivalent of odbc_connect in pymssql using freeTDS driver?

For example using pyodbc I can use connect within the connection string itself and then pass all required parameters:

conn_string = ("mssql+pyodbc:///?autocommit=true&odbc_connect={}".format(parameters)

Is it possible to use &connect={} within the string using pymssql & freeTDS in SQLAlchemy?

1 Answer 1

1

No, because odbc_connect= is part of the pyodbc driver code in SQLAlchemy and the pymssql driver code has no corresponding option. That said, pymssql was actively supported in SQLAlchemy until recently, so if you need to pass any extra options to pymssql there is probably a way to do it. Check the documentation for details.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.