sqlsrv with laravel / error after server update

Common errors:

  1. SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object.
  2. ATTR_ERRMODE exception is not supported

Resolutions:

Edit: \vendor\laravel\framework\src\Illuminate\Database\Connectors\SqlServerConnector.php

Comment or delete:

        // PDO::ATTR_STRINGIFY_FETCHES => false,


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *