Microsoft Download Center Archive

Microsoft Drivers for PHP for SQL Server

  • Published:
  • Version: 4.0 and older
  • Category: Driver
  • Language: English

The Microsoft Drivers for PHP for SQL Server provide connectivity to Microsoft SQL Server from PHP applications.

The Microsoft Drivers for PHP for SQL Server are PHP extensions that allow 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 2008 and later.

Files

Status: Deleted

This download is no longer available on microsoft.com. The downloads below are archives provided by the Internet Archive Wayback Machine from the Microsoft Download Center prior to April 2023.

Files
SQLSRV32.EXE
  • SHA1: fbca0921e916bed0013422a3446b125bb4ede6fb
  • Size: 488 KB
SQLSRV40.EXE
  • SHA1: 3c756d09f55ef7e967127d0bc0d7632cf03e8050
  • Size: 521 KB

System Requirements

Operating Systems: Windows 8.1, Windows 7, Windows Vista Service Pack 2, Windows Server 2008 R2, Windows Server 2008 Service Pack 2, Windows 8

Operating Systems supported in this update:

  • Ubuntu 15.04, 16.04
  • RedHat 7

  • Requires PHP 7 or 5.x. For information about how to download and install the latest stable binaries, visit http://windows.php.net for more detail.

  • Version support for PHP is as follows
    • Version 4.0 supports PHP 7.0+ on Windows and Linux
    • Version 3.2 supports PHP 5.6, 5.5, and 5.4 on Windows

    For more detail and for supported operating systems, see Microsoft PHP Drivers for SQL Server Support Matrix .

  • An Internet Information Services (IIS) Web server is required
  • Version 4.0 requires Microsoft ODBC Driver 11 or Microsoft ODBC Driver 13. Version 4.0 for Linux requires Microsoft ODBC Driver 13.
  • Version 3.2 of the driver require Microsoft ODBC Driver 11. You can download the Microsoft ODBC Driver 11 here.
  • Installation Instructions

    Perform the following steps to download and install the Microsoft Drivers for PHP for SQL Server (example below for 4.0 version):
    1. Download SQLSRV40.EXE to a temporary directory
    2. Run SQLSRV40.EXE
    3. When prompted, enter the path to the PHP extensions directory
    4. After extracting the files, read the Installation section of the SQLSRV_Readme.htm file for next steps

    For Linux, follow the instructions at PHP Linux and Mac Drivers Installation Tutorial

    Additional information

    Community Support: SQL Server PHP Driver forum
    Submit Feedback: SQL Server Feedback
    Documentation: Microsoft Online Documentation.
    Team Blog: Browse our blog for comments from the team in the PHP Team Blog.

    This page was generated from a snapshot of the Microsoft Download Center made on .
    FamilyId: 80e44913-24b4-4113-8807-caae6cf2ca05
    Report a problem