blue-yonder / turbodbc

Turbodbc is a Python module to access relational databases via the Open Database Connectivity (ODBC) interface. The module complies with the Python Database API Specification 2.0.
http://turbodbc.readthedocs.io/en/latest
MIT License
607 stars 85 forks source link

How to set pre-connect connection attributes? #391

Open sdebruyn opened 1 year ago

sdebruyn commented 1 year ago

In MS SQL you need to set pre-connect connection attributes to be able to authenticate using Azure AD with things like access tokens.

This is supported by all recent versions of the MS ODBC drivers on all platforms, but I can't find how I can pass them using TurbODBC.

rupurt commented 3 months ago

I would also love to figure out how to do this. I'd like to set the SQL_ATTR_PACKET_SIZE connection attribute