title: PDO and SQL Express 2005 - driver not found
body: <p>Following is what I have tried...</p>
  
  <p>The code:</p>
  
  <pre><code>try {
      //as seen in comments on php.net
      //$mssql = new PDO('sqlsrv:host=ip;port=port;dbname=db','user','pass');
      //$mssql = new PDO('mssql:host=ip,port;dbname=db', 'user', 'pass');
      //$mssql = new PDO('mssql:server=ip\SQLEXPRESS; Database=db', 'user', 'pass');
  
      //as seen in the SQLSRV_Help.chm
      //$mssql = new PDO('sqlsrv:server=ip; Database=db', 'user', 'pass');
  
      //as seen on php.net
      $db = new PDO("sqlsrv:Server=ip,port;Database=db", "user", "pass");
  } catch(PDOException $e) {  
      echo $e-&gt;getMessage();  
  }
  </code></pre>
  
  <p>The message: <code>could not find driver</code></p>
  
  <p><strong>Question1:</strong> What is the right connection syntax?</p>
  
  <p><strong>Question2:</strong> Did I miss something with enabling the driver (see additional info)?</p>
  
  <p>Additional Info:
  The system: <code>Windows (Wampserver) - PHP 5.3 VC9 ThreadSafe</code></p>
  
  <p>Inside php.ini (after restarting servers):</p>
  
  <pre><code>extension=php_pdo_sqlsrv_53_ts.dll
  extension=php_pdo_sqlsrv_53_ts_vc9.dll
  extension=php_sqlsrv_53_ts.dll
  extension=php_sqlsrv_53_ts_vc9.dll
  </code></pre>
  
  <p>The dll's are also in the ext/ folder</p>