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

Is Microsoft SQL server supported as the metadata engine #18961

Closed
parker-pu opened this issue Feb 28, 2022 · 8 comments
Closed

Is Microsoft SQL server supported as the metadata engine #18961

parker-pu opened this issue Feb 28, 2022 · 8 comments
Labels
#bug Bug report install:config Installation - Configuration settings install

Comments

@parker-pu
Copy link

Error executing "superset db upgrade"

image

sqlalchemy.exc.ProgrammingError: (pymssql._pymssql.ProgrammingError) (208, b"Invalid object name 'alembic_version'.DB-Lib error message 20018, severity 16:\nGeneral SQL Server error: Check messages from the SQL Server\n")
[SQL: UPDATE alembic_version SET version_num='b4456560d4f3' WHERE alembic_version.version_num = 'bb51420eaf83']
@parker-pu parker-pu added the #bug Bug report label Feb 28, 2022
@villebro
Copy link
Member

villebro commented Mar 1, 2022

Unfortunately no - Only Postgres and MySQL are supported.

@villebro villebro closed this as completed Mar 1, 2022
@villebro villebro added install install:config Installation - Configuration settings labels Mar 1, 2022
@parker-pu
Copy link
Author

thank you

@AnanthaGopi0
Copy link

I want to configure the Microsoft SQL server as the metadata is there any process for this?

@villebro
Copy link
Member

Only MySQL and Postgres are officially supported. MSSQL might work, but is not guaranteed to do so. But I don't recommend using anything other than Postgres and MySQL for anything else than experimental usage.

@AnanthaGopi0
Copy link

Thank You for your reply and suggestion.

@sfirke
Copy link
Contributor

sfirke commented Aug 15, 2023

Update that someone just reported in Slack trying Superset version 2.1.0 with Microsoft SQL Server as a backend and it did not work. So the answer to this question remains "No."

@cumulate
Copy link

Update that someone just reported in Slack trying Superset version 2.1.0 with Microsoft SQL Server as a backend and it did not work. So the answer to this question remains "No."

@sfirke May I know if there are any technical limitations in extending support to SQLServer to use for metadata db?? Can you please let me know the feasibility of customizing the superset to support SQLServer? If it can be done, then I want to evaluate the efforts of customizing to extend the support for SQL Server, as it's a pressing need for me now!

TIA

@sfirke
Copy link
Contributor

sfirke commented Sep 26, 2023

That's a good question @cumulate . I'm not sure about the feasibility. You might want to join the Superset Slack chat and see this thread: https://apache-superset.slack.com/archives/C01SS4DNYG5/p1691659469935669

In it someone answers:

Basically if flask-migrate cannot support mssql, then superset can't either

If it would be possible to address this by getting flask-migrate to substitute characters in strings or wrap them differently for SQL Server, that would be a great contribution to that project. This is not a technical area I'm familiar with so I can't help more. It does seem like you'd contribute to the flask-migrate project to fix this, or maybe SQL Alchemy. Possibly related: miguelgrinberg/Flask-Migrate#328

Let us know here if you submit a fix for this upstream - if Superset becomes able to use MSSQL as a backend I'd happily update the docs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report install:config Installation - Configuration settings install
Projects
None yet
Development

No branches or pull requests

5 participants