troubleshooting Question

Trouble installing the PHP PDO driver for MSSQL on Windows and Xampp

Avatar of ITBenelux
ITBeneluxFlag for Belgium asked on
PHPApache Web ServerMicrosoft SQL Server
3 Comments1 Solution3223 ViewsLast Modified:

I'm having trouble connecting with MSSQL on Xampp/Windows
(dev local server connecting to a distant DB (MSSQL 2005)).

The following Connection string work fine :


so I don't think it have anything to do with DB rights or firewall but

'mssql:host=' . SQLSRV_IP . ';dbname=' . SQLSRV_DBNAME, SQLSRV_USER, SQLSRV_PWD

give me the following error message : 'could not find driver'.

I've search the web and stumble upon the following link by MS (which I hope is the latest version)

I've installed the 4 .dll in /php/ext/ and added the following line in PHP.ini
but it still don't work (loading any other .dll give me various errors on apache startup)

Could someone tell me what I'm doing wrong or give me step by step instruction ?
I'm fairly new working with anything else than MySQL or PostgreSQL.

Thank you and kind regards.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros