After installing Superset (open source software from Airbnb) on my virtual machine (RHEL, Linux 7.2-11), I cannot add my MSSQL database in the configuration page.
Menu->Sources->Databases->Add
In the SQLAlchemy URI field, I entered :
mssql+pymssql://user:password@host:port/database
Obviously, with my user, password, host, port and database name.
But when I click "Test Connection" I have the following error :
ERROR: {"error": "Connection failed!
The error message returned was:
(pymssql.OperationalError) (18456, 'DB-Lib error message 20018, severity 14:\
General SQL Server error: Check messages from the SQL Server\
DB-Lib error message 20002, severity 9:\
Adaptive Server connection failed (host:port)')"}
I already installed the pymssql package and I do not really know where this error could come from.
I tried to follow these tutorials but, maybe I'm doing it wrong:
http://airbnb.io/superset/installation.html
http://airbnb.io/superset/tutorial.html#connecting-to-a-new-database
What worked for me is the following:
mssql+pymssql://user:[email protected]/?charset=utf8
However, I didn't manage to define a database using this syntax, and in turn couldn't define/find the available tables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With