Attempting to connect to an Azure SQL database, most other configurations I've tried result in an instant error:
Client unable to establish connection (0) (SQLDriverConnect)')
But this one I'm currently trying times out and is the closest I've got:
cnxn = pyodbc.connect(driver='{ODBC Driver 17 for SQL Server}', server='tcp:mydatabase.database.windows.net:1433', database='MyDatabase', user='username', password='password')
pyodbc.OperationalError: ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')