Windows7, SQL Server 2008 R2, PHP 5.4.6 - trying to install SQL Server 2012 Native Client ODBC Driver RRS feed

  • Question

  • Trying to setup my laptop as a development base for PHP.

    Details are as follows:

    Windows7 x64 SP1, SQL Server 2008 R2, (EasyPHP instalation) PHP 5.4.6, Apache 2.4.2

    SQL Server is running fine as can read data using C# (in Visual Studio)

    PHP is running as can read data from the mysql db that comes with it.

    PHP Extension Build API20100525,TS,VC9

    Recently installed SQL Server Drivers 3.0 to link to SQL server.

    Now when I use sqlsrv_connect() or PDO('sqlsrv: etc') in PHP I get the following error message:

    This extension requires the Microsoft SQL Server 2012 Native Client ODBC
    Driver to communicate with SQL Server. Access the following URL to
    download the Microsoft SQL Server 2012 Native Client ODBC driver for

    So I have downloaded Microsoft® SQL Server® 2012 Native Client  - X64 Package (sqlncli.msi)

    Running the install I get the message:

    "There is a problem with this  Windows Installer package. A DLL required for this install to complete  could not be run"

    Any help would be appreciated.

    Saturday, January 19, 2013 1:34 PM

All replies