Microsoft SQL Server and Sybase Functions (PDO_DBLIB) PDO_DBLIB
&reftitle.intro; &warn.experimental; PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary. On Windows, you should use the PDO_ODBC driver to connect to Microsoft SQL Server and Sybase databases, as PDO_ODBC is built directly against the Microsoft Windows ODBC Driver Manager libraries.
PDO_DBLIB DSN Connecting to Microsoft SQL Server and Sybase databases &reftitle.description; The PDO_DBLIB Data Source Name (DSN) is composed of the following elements: DSN prefix The DSN prefix is sybase: if PDO_DBLIB was linked against the FreeTDS libraries, or mssql: if PDO_DBLIB was linked against the Microsoft SQL Server libraries. host The hostname on which the database server resides. dbname The name of the database. &reftitle.examples; PDO_DBLIB DSN examples The following examples show a PDO_DBLIB DSN for connecting to Microsoft SQL Server and Sybase databases: