I’m trying to connect to a SQL Server on Azure. I’ve entered all information, and can confirm it works with the same credentials when using other software. My IP is also white listed on Azure SQL Server.
I am also receiving this error today as I’m trying to connect my selfhosted redash to my azure sql server db. Anyone have any insights on how to resolve this issue? Thanks
The error that pops up is
DB-Lib error message 20018, severity 20: General SQL Server error: Check messages from the SQL Server DB-Lib error message 20002, severity 9: Adaptive Server connection failed (myserver.database.windows.net:1433)
I installed onto my Azure Linux VM via the setup.sh script. I’ve setup Redash many times, but this is my first time connecting to an Azure SQL as the DB.
Interesting. Try changing your username in the data source setup screen to include the server name. For Azure, the username requires the server name as well - so instead of "myusername" you need "myusername@server-name-here".
This solution comes straight from the pymssqldocumentation:
IMPORTANT : Do not use username@server.database.windows.net for the user parameter of the relevant connect() call! You must use the shorter username@server form instead!
We had the same error earlier this week. This change solved it.
I’m getting error while doing test connection as below,
DB-Lib error message 20018, severity 20: General SQL Server error: Check messages from the SQL Server DB-Lib error message 20002, severity 9: Adaptive Server connection failed (redashsqlserver.database.windows.net:1433)