<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/pdo.drivers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'ref.pdo-dblib.php',
    1 => 'MS SQL Server PDO Driver',
    2 => 'Microsoft SQL Server and Sybase PDO Driver (PDO_DBLIB)',
  ),
  'up' => 
  array (
    0 => 'pdo.drivers.php',
    1 => 'PDO Drivers',
  ),
  'prev' => 
  array (
    0 => 'pdo.cubrid-schema.php',
    1 => 'PDO::cubrid_schema',
  ),
  'next' => 
  array (
    0 => 'ref.pdo-dblib.connection.php',
    1 => 'PDO_DBLIB DSN',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pdo_dblib/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.pdo-dblib.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pdo-dblib" class="reference">
  
  <h1 class="title">Microsoft SQL Server and Sybase PDO Driver (PDO_DBLIB)</h1>
  
  <div class="partintro">

   <div class="section" id="ref.pdo-dblib.intro">
   <h2 class="title">Introduction</h2>
    <p class="para">
     PDO_DBLIB is a driver that implements the <a href="book.pdo.php#intro.pdo" class="link">PHP
     Data Objects (PDO) interface</a> to enable access from PHP to
     Microsoft SQL Server and Sybase databases through the FreeTDS library.
    </p>
    <p class="para">
     This extension is not available anymore on Windows.
    </p>
    <p class="para">
     On Windows, you should use SqlSrv, an alternative driver for MS SQL is
     available from Microsoft: <a href="http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx" class="link external">&raquo;&nbsp;http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx
     </a>.
    </p>
    <p class="para">
     If it is not possible to use SqlSrv, you can use the
     <a href="ref.pdo-odbc.php" class="link">PDO_ODBC</a> driver to connect to
     Microsoft SQL Server and Sybase databases, as the native Windows DB-LIB
     is ancient, thread un-safe and no longer supported by Microsoft.
    </p>
   </div>
  </div>

  

 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-dblib.connection.php">PDO_DBLIB DSN</a> — Connecting to Microsoft SQL Server and Sybase databases</li></ul>
</div>
<?php manual_footer($setup); ?>