sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

MS SQL authentification with the managed identity

Open keunsoopark opened this issue 11 months ago • 4 comments

I wanted to use SQL Mesh instead of dbt in MS SQL DB for saving costs, but it requires authentification with the managed identity instead of username & password.

I asked it out to Slack community, but got an answer that it is not supported - thread.

It would be great if SQL Mesh supports this like dbt - https://docs.getdbt.com/docs/core/connect-data-platform/mssql-setup#microsoft-entra-id-authentication

Not only managed identity but also entra id as well for local dev purpose.

keunsoopark avatar Mar 18 '25 08:03 keunsoopark

This is essentially the same issue as https://github.com/TobikoData/sqlmesh/issues/3481 and https://github.com/TobikoData/sqlmesh/issues/3776

I don't think pymssql will ever reach feature parity with Microsoft's ODBC driver, particularly when Microsoft keeps adding weird and wonderful authentication types.

We should add support to SQLMesh but it's lower on the priority list at the moment, feel free to improve this PR or raise a PR

erindru avatar Mar 18 '25 15:03 erindru

@erindru should we close this in favor of the other tickets? Or edit the others' descriptions to include this item?

georgesittas avatar Mar 25 '25 20:03 georgesittas

The other tickets are already closed as not planned, so if anything this one should stay open to track the issue since it's come up a bunch of times and there is clearly demand for it

erindru avatar Mar 25 '25 20:03 erindru

Ah I see, I thought one of them was open but didn't check. Thanks for clarifying 👍

georgesittas avatar Mar 25 '25 22:03 georgesittas

This could probably be closed now ☺️

https://github.com/TobikoData/sqlmesh/pull/4686

mattiasthalen avatar Jun 12 '25 05:06 mattiasthalen