Cannot work with MS SQL database in Doctrine 2

I try to connect to the MS SQL database in Doctrine 2.0, but I get this error all the time: Fatal error: Uncaught exception "PDOException" with the message "driver could not be found".

I already installed that I need to install the SqlSrv PDO extension to my local PHP (using Wamp), so I did this (copied the dll to the ext folder, edited php.ini, restarted), but the problem still remains the same. I am trying to use some drivers that I downloaded, the file name is SQLSRV20.EXE . In the Doctrine configuration, I have it as a driver: pdo_sqlsrv .

Does anyone have the same experience or is there only someone who knows what to do to get it to work?

+4
source share
1 answer

I had a hell of a job trying to get the PDO driver to work - it turned out I just needed to reboot my system.

.. it should not have been necessary, but it really worked. Therefore, if you are sure that you have taken all the steps necessary to enable the drivers, and they still do not work, give a reboot.

0
source

All Articles