Enabling WAMP Server to work with SQL Server Express 2012
Posted by: stesimp (---.dsl.in-addr.zen.co.uk)
Date: October 30, 2013 09:24AM

Hi, for my latest project I want to use SQL SERVER 2012 Express as the database. From researching on the internet I understand that I need to install some DLL drivers from Microsoft that enable PHP to talk with SQL Server. I spent several hours last night trying unsuccessfully to get this to work.

I appreciate that this is a big ask but can anyone provide a step by step guide on how I achieve this or know of a website which contains this info? Specifically I need to know which extensions I need to use as I understand that certain DLL extensions for connecting to SQL Server have now been dropped in favour of alternative ones. Also are there any configuration settings I need to change in SQL Server to enable this functionality?

Any help which can be offered on this subject will be greatly appreciated.



Edited 1 time(s). Last edit at 10/30/2013 09:28AM by stesimp.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: RiggsFolly (---.as13285.net)
Date: October 30, 2013 11:32AM

What version of WAMPServer have you got installed?
Specifically is it 32bit or 64bit?

Apache version?
PHP Version?

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: stesimp (---.dsl.in-addr.zen.co.uk)
Date: October 30, 2013 03:41PM

Hi, thanks for the reply, I have downloaded WAMP 64 Bit with PHP 5.4 and Apache 2.4.4.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: RiggsFolly (---.as13285.net)
Date: October 30, 2013 05:23PM

Ok as far as I know the extension you need to make PHP talk to SQL Server php_mssql is only provided as a 32but dll.

You will have to uninstall the 64bit version of WAMPServer and install the 32bit one.

That woudl explain why you cannot get the extension to work.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: stesimp (---.dsl.in-addr.zen.co.uk)
Date: October 31, 2013 09:09AM

Ok, thanks for the advice. I will try installing a 32 bit installation of WAMP and let you know how I get on.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: stesimp (---.bb.sky.com)
Date: November 03, 2013 04:56PM

Hi, thanks for the advice. I can confirm that after I installed the 32 bit version of WAMP server that I was able to connect to SQL Server. I also needed to add some additional lines to my PHP.ini file as follows:

//disable these extensions by adding ; to the start of the extension

;extension=php_mssql.dll
;extension=php_pdo_mssql.dll

//then add the following extensions

extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll
extension=php5ts.dll


Thanks for your help with this.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: RiggsFolly (---.as13285.net)
Date: November 05, 2013 12:38PM

Thanks for the feedback.

Options: ReplyQuote
Re: Enabling WAMP Server to work with SQL Server Express 2012
Posted by: suri46 (94.56.161.---)
Date: September 14, 2015 01:57PM

Hi, for my latest project I want to use SQL SERVER 2012 Express as the database. From researching on the internet I understand that I need to install some DLL drivers from Microsoft that enable PHP to talk with SQL Server. I spent several hours last night trying unsuccessfully to get this to work.

I appreciate that this is a big ask but can anyone provide a step by step guide on how I achieve this or know of a website which contains this info? Specifically I need to know which extensions I need to use as I understand that certain DLL extensions for connecting to SQL Server have now been dropped in favour of alternative ones. Also are there any configuration settings I need to change in SQL Server to enable this functionality?
version of WAMPServer version2.5 installed
Specifically is it 32bit

Any help which can be offered on this subject will be greatly appreciated

Options: ReplyQuote


Sorry, only registered users may post in this forum.