title: PHP PDO to MS SQL Server on Ubuntu Server
body: <p>I am trying to use PDO to connect to a MS SQL Server. I have tried using this</p>
  
  <pre><code>$db = new PDO("sqlsrv:server=server;database=databaseName", "username", "password");
  </code></pre>
  
  <p>I was reading that sqlsrv is no longer supported. I tried using dblib but that is not working.</p>
  
  <p>I wanted to use PDO because it is supposed to work with various databases but I cannot seem to get it to work with MS SQL.</p>
  
  <p>What is the best way to use PDO with SQL Server on Ubuntu?</p>
  
  <p>Any help would be great.</p>
  
  <p>Thanks</p>