Format pdo_connection mssql

Asked

Viewed 101 times

1

I am using Laravel 5.6 in Ubuntu 16 and I am trying to connect it in mssql 2012. I am using the db_lib library as this is project requirement. When I try to connect this error:

 PDOException  : SQLSTATE[IM001]: Driver does not support this 
 function: driver does not support that attribute

 at /home/agner/Documentos/ubuntu-laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:71

 public function getServerVersion()
 70|     {
 > 71|         return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
 72|     }

Exception trace:

1   PDO::getAttribute()
  /home/agner/Documentos/ubuntu-laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:71

2 Doctrine\DBAL\Driver\PDOConnection::getServerVersion()
/home/agner/Documentos/ubuntu- laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:496
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.