Using SQLAlchemy to connect to SQL Server on Azure. I can access it via JDBC using SQLÂ Workbench/J from same IP.(opened the IP in Azure)
Using the string:
mssql+pymssql://username:[email protected]
Getting:
(pymssql.OperationalError) (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (nibisql1.database.windows.net:1433)\n') (Background on this error at: http://sqlalche.me/e/e3q8)
I tried all variations, but none of them work.
any idea why?
How do I pass parameters such as databasename?
pip install pymssql? - Gord Thompsonpymssqlconnecting to Azure. The only way I found to beat this is to switch topyodbcoverunixodbc(ormsodbc, whichever suits you needs better). That is if you're on Linux. Works perfectly. - Grisha Spyodbc, but it is possible to get it to work - Grisha S