I'm trying to connect mssql database with php 7 and ubuntu 16.04. I installed odbc driver and check it with sample_c_linux file its working but when I'm executing my code its giving this error.
[PDOException] SQLSTATE[IMSSP]: This extension requires the Microsoft ODBC Driver 13 for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver 13 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
$db = DB::connection('sqlsrv');
$sql = "sp_EntityFullList";
$procedure = $db->getPdo()->exec( $sql );
sqlsrv
is a bit new to Linux, but still weird. May you change fromsqlsrv
toFreeTDS
or it's not an option? - Gabriel Heming