title: Windows Azure Website connect external SQL server
body: <p>I just upload my project to Windows Azure website <strong>free version</strong>.</p>
  
  <p>My website need to connect to external SQL server on another web hosting.(not SQL server on windows azure).</p>
  
  <p>When i develop on my PC. Everything works well (that mean my connection string is correct).</p>
  
  <p>But when i upload to windows azure. It can't connect to that database.</p>
  
  <p>And throw exception like this.</p>
  
  <p><strong>Access is denied</strong></p>
  
  <p>when i do the following this answer, error show like this
  <a href="https://stackoverflow.com/questions/1952904/connecting-to-remote-sql-server-2008-from-windows-azure">Connecting to remote SQL Server 2008 from Windows Azure</a></p>
  
  <p><strong>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond</strong></p>
  
  <p>and both show stack trace like this</p>
  
  <pre><code>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  
  [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
  </code></pre>
  
  <p>how can i solve this issue, please help.</p>