Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AndyDTK's avatar

Error TDS - SQL Server on Laravel

When I try to execute query to secondary DB on Laravel I get this ERROR:

SQLSTATE[HY000]: [Microsoft][ODBC Driver 17 for SQL Server] Protocol error in TDS stream. (Connection: sqlsrv, SQL: select * from [TOOLS])

I have my main application that uses a MariaDB database and I need to read some data from a MS-SQL server to generate graphs of some rainmeters...

There is an exaustive solution? I found some old threads but I'm not able to resolve my issue...

0 likes
1 reply
AndyDTK's avatar

I have also tried to "match" ...\config\database.php and .env conf file... but don't work... My ODBC driver for PHP is also the last available...

Please or to participate in this conversation.