Skip to main content

SQL Server Driver for PHP

SQL Server Driver for PHP

In its continued commitment to interoperability with PHP, the SQL Server Driver for PHP is designed to enable reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform. The driver is a PHP 5 extension that allows the reading and writing of SQL Server data from within PHP scripts. It provides interfaces for accessing data in all editions of SQL Server starting from SQL Server 2005 (including Express Editions) as well as SQL Azure. It makes use of PHP features, including PHP streams to read and write large objects. With this release, the source code for the driver is available at: http://sqlsrvphp.codeplex.com.

The SQL Server Driver for PHP relies on the Microsoft SQL Server Native Client to communicate with SQL Server. For more information about SQL Server Native Client, visit the SQL Server Native Client page on MSDN.

The SQL Server Driver for PHP is documented on our MSDN site including a simple yet complete example application.


Downloads

Microsoft Drivers for PHP for SQL Server 3.0 – April 2012

The Microsoft Drivers 3.0 for SQL Server for PHP are PHP 5 extensions that allows for the reading and writing of SQL Server data from within PHP scripts. The SQLSRV extension provides a procedural interface while the PDO_SQLSRV extension implements PDO for accessing data in all editions of SQL Server 2005 and later.


We have published the source code for both drivers on our CodePlex project site. At this time we are releasing the source code under the Apache 2.0 license. In continuation with our previous policy, Microsoft supports only the Microsoft signed versions of the drivers.

Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?