In windows 10, I have a laravel project with php 7.4 and ODBC Driver 17 and the SQL server drivers. All worked fine, until I tried to install SQL Server Management Studio (SSMS). And DBeaver. They broke something (which I couldnt know what it was) and I started getting the error mentioned. In my case it was fixed by commenting the option: PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,