Home  >  Q&A  >  body text

When using Laravel on Ubuntu, an unsupported property was specified on the PDO object: MSSQL

My Ubuntu vagrant Laravel Homestead setup is configured to connect to MSSQL. Randomly, it started throwing the following error on every query that goes into the MSSQL database (on a Windows server).

Any ideas? I can't find much information about re:this on Google.

I restarted PHP and confirmed that the SQLSRV module was loaded.

SQLSTATE[IMSSP]: An unsupported attribute was designated on the PDO object. (SQL: select top 10 * from [orders] where [ordertype] = SO order by [orderdate] desc)


P粉301523298P粉301523298326 days ago722

reply all(1)I'll reply

  • P粉198670603

    P粉1986706032023-10-31 21:46:52

    Check this problem report PDO::ATTR_PERSISTENTNot supported. They also reported issues with PDO::ATTR_ERRMODE, so please check the connection of those two parameters.

    reply
    0
  • Cancelreply