title: Timeout error when connecting to Azure database in Azure Databricks
body: <p>Step1: Install the ODBC driver 17 using below script in Databricks</p>
  <pre><code>%sh 
  
  curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
  curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list &gt; /etc/apt/sources.list.d/mssql-release.list 
  apt-get update
  ACCEPT_EULA=Y apt-get install msodbcsql17
  apt-get -y install unixodbc-dev
  sudo apt-get install python3-pip -y
  pip3 install --upgrade pyodbc
  </code></pre>
  <p>Step 2: Tried to connect to Azure database using active directory integrated authentication.</p>
  <pre><code>%python
  
  import pyodbc
  conn = pyodbc.connect( 'Driver={ODBC Driver 17 for SQL Server};Server=tcp:xxxxxxx.database.windows.net,1433;Database=xxxxxxx;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=60;Authentication=ActiveDirectoryIntegrated')
  #result = conn.execute(&quot;select 1+1 as res&quot;)
  result = conn.execute(&quot;select * from tablename&quot;)
  print (result)
  conn.close()
  </code></pre>
  <p>The above Python code is working fine in my local system and getting the below timeout error when execute in Azure Databricks. Please help on this issue.</p>
  <pre><code>OperationalError: ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')
  </code></pre>