Hi everyone,
i found a really strange problem using sqlsrv driver for connecting to the database. If i use as default DB_CONNECTION 'sqlsrv' with this configuration
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => 'MSSQL_TEST',
'database' => 'dbname',
'username' => 'dbuser',
'password' => 'dbpassword',
'charset' => 'utf8',
'prefix' => '',
],
i get this error
[PDOException]
SQLSTATE[01002] Adaptive Server connection failed (severity 9)
if i use the exact same configuration using another DB_CONNECTION name such as 'test' i get this working with no error:
'test' => [
'driver' => 'sqlsrv',
'host' => 'MSSQL_TEST',
'database' => 'dbname',
'username' => 'dbuser',
'password' => 'dbpassword',
'charset' => 'utf8',
'prefix' => '',
],
can anyone explain me why is this appening? i got really no clue about that.
Thanks in advance to anyone who could help me.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community