I am trying to use PDO to connect to a MS SQL Server. I have tried using this
$db = new PDO("sqlsrv:server=server;database=databaseName", "username", "password");
I was reading that sqlsrv is no longer supported. I tried using dblib but that is not working.
I wanted to use PDO because it is supposed to work with various databases but I cannot seem to get it to work with MS SQL.
What is the best way to use PDO with SQL Server on Ubuntu?
Any help would be great.
Thanks