<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pdo.cubrid-schema.html">PDO::cubrid_schema</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-dblib.connection.html">PDO_DBLIB DSN</a></div> <div class="up"><a href="pdo.drivers.html">PDO Drivers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ref.pdo-dblib" class="reference"> <h1 class="title">Microsoft SQL Server and Sybase Functions (PDO_DBLIB)</h1> <div class="partintro"> <div class="section" id="pdo-dblib.intro"> <h2 class="title">Introduction</h2> <p class="para"> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This extension is <em class="emphasis">EXPERIMENTAL</em>. The behaviour of this extension including the names of its functions and any other documentation surrounding this extension may change without notice in a future release of PHP. This extension should be used at your own risk.</p></div> PDO_DBLIB is a driver that implements the <a href="intro.pdo.html" class="link">PHP Data Objects (PDO) interface</a> to enable access from PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary. </p> <p class="para"> This extension is not available anymore on Windows with PHP 5.3 or later. </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">» 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.html" 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.html">PDO_DBLIB DSN</a> — Connecting to Microsoft SQL Server and Sybase databases</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pdo.cubrid-schema.html">PDO::cubrid_schema</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-dblib.connection.html">PDO_DBLIB DSN</a></div> <div class="up"><a href="pdo.drivers.html">PDO Drivers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>