I installed PHP 7 from the Ondřej Surý repository, how do I install the PDO SQLSRV driver on Ubuntu 16.4? PS I know this is a perversion, but it's not my fault.

    1 answer 1

    The driver for SQL Server in Ubuntu is installed as follows:

    sudo apt install php-sybase php7.0-sybase

    In the connection string, instead of pdo_sqlsrv, you must specify dblib.