title: PDO Adaptive Server connection failed when connecting to MSSQL server in FuelPHP
body: <p>FuelPHP seems to be doing something odd when I try to connect to a MSSQL database via PDO.</p>
  
  <h1>Working Outside of FuelPHP</h1>
  
  <p>I have tried the following in a vanilla PHP page on my local server:</p>
  
  <pre><code>&lt;?php
  $mssql = new \PDO('dblib:host=&lt;IP OF HOST&gt;;dbname=&lt;DBNAME&gt;', '&lt;USER&gt;', '&lt;PASS&gt;');
  </code></pre>
  
  <p>And everything works fine. It connects and I can easily query the DB like I would expect.</p>
  
  <h1>NOT Working Inside of FuelPHP</h1>
  
  <p>However, when I try adding the connection in config/db.php with basically the same information an exception is thrown.</p>
  
  <pre><code>&lt;?php
  return array(
    'mssql' =&gt; array(
      'connection'  =&gt; array(
        'dsn'        =&gt; 'dblib:host=&lt;IP OF HOST&gt;;dbname=&lt;DBNAME&gt;',
        'username'   =&gt; '&lt;USER&gt;',
        'password'   =&gt; '&lt;PASS&gt;',
      ),
      'type'        =&gt; 'pdo',
      'table_prefix' =&gt; '',
    ),
  );
  </code></pre>
  
  <p>And subsequently try to query the DB within FuelPHP like so:</p>
  
  <pre><code>$q = \DB::select()
          -&gt;from('table')
          -&gt;limit(5);
  
  $r = $q-&gt;execute('mssql');
  </code></pre>
  
  <p>The following exception is thrown: <code>Fuel\Core\Database_Exception [ 20002 ]: SQLSTATE[01002] Adaptive Server connection failed (severity 9)</code></p>
  
  <p>What the kicker is when I try to just do my original basic connection inside of a controller of FuelPHP I get the same error message. So it appears FuelPHP is playing havoc with even a normal PDO connection.</p>
  
  <h2>Example of basic connection attempt within a FuelPHP controller.</h2>
  
  <pre><code>&lt;?php
  
  class Controller_Welcome extends Controller
  {
    public function action_index()
    {
      $mssql = new \PDO('dblib:host=&lt;IP OF HOST&gt;;dbname=&lt;DBNAME&gt;', '&lt;USER&gt;', '&lt;PASS&gt;');
    }
  }
  </code></pre>
  
  <p>For reference I am using PHP 5.3.16 and using FreeTDS to connect from my OS X laptop. (This shouldn't be an issue though since the vanilla version works.)</p>