By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,693 Members | 1,646 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,693 IT Pros & Developers. It's quick & easy.

Connecting EasyPHP to SQL Server 2008 R2 Windows 7

P: 1
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 from:

To be specific: 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.
Jan 20 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.