Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLAlchemy engine from workspace level service principle? #376

Open
timharsch opened this issue Mar 20, 2024 · 0 comments
Open

SQLAlchemy engine from workspace level service principle? #376

timharsch opened this issue Mar 20, 2024 · 0 comments
Labels
question Further information is requested

Comments

@timharsch
Copy link

timharsch commented Mar 20, 2024

From a remote client, I need to write a script that connects to my SQL Warehouse using a workspace level service principal and creates an SQLAlchemy engine.. which I can then pass to a library that expects the engine.

I did write example scripts that:

  • connect using the Service Principal via python dbapi, thanks to the example provided.
  • creates a SQLALchemy engine using a PAT

I tried quite a few things including using pyodbc, only to discover that it fails as databricks_dbapi/odbc.py only supports username/password or PAT

Is there a way to create a SQLAlchemy engine connected to a SQL Warehouse using a service principle?

@kravets-levko kravets-levko added the question Further information is requested label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants