PHP version 8.1, using ODBC driver 18
Trying to do it with
$conn = sqlsrv_connect($serverName, $connectionInfo);
using the same credentials as in DBeaver client (which works fine)
The error I'm getting is:
[0] => 28000
[SQLSTATE] => 28000
[1] => 18456
[code] => 18456
[2] => [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'user'.
[message] => [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'user'
How can I debug it further?