title: PHP connect to SQL server on different machines
body: <p>I have a PHP website on a Windows machine and would like to insert data DIRECTLY to SQL database which is located on IIS server on a different machine?</p>
  
  <p>Which approach shall I follow?</p>
  
  <p>**My initial thought was to divert to a PHP page hosted by IIS that executes a query and then redirect back to my website. However, I prefer something easier and less complicated approach.</p>
  
  <p>IIS is on Windows Server 2008 R2.</p>
  
  <p>Your help is appreciated very much. Thanks!</p>