Illuminate\Database\QueryException SQLSTATE[HYT00]: [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired

Posted 2 months ago by mirkin93

When I try to connect to my SQL Server with my Laravel App I got the error: Illuminate\Database\QueryException SQLSTATE[HYT00]: [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired.

When I try to the same connection on my server with sqlcmd -S {host} -d {database} -U {user} -P {pass} -I -Q {query} I got a result.

How can I fix the error in the Laravel App?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.