mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
SQL connection string fixed for IIS
This commit is contained in:
parent
20e4e95958
commit
1aecbddb6e
@ -58,7 +58,7 @@ class MSSQLDatabase extends Database {
|
||||
|
||||
if(function_exists('sqlsrv_connect')){
|
||||
$this->funcPrefix='sqlsrv';
|
||||
$this->dbConn = $connect($parameters['server'], Array('UID'=>$parameters['username'], 'PWD'=>$parameters['password'], 'Database'=>$parameters['database']));
|
||||
$this->dbConn = sqlsrv_connect($parameters['server'], Array('UID'=>$parameters['username'], 'PWD'=>$parameters['password'], 'Database'=>$parameters['database']));
|
||||
$this->active=true;
|
||||
} else {
|
||||
$this->funcPrefix='mssql';
|
||||
|
Loading…
Reference in New Issue
Block a user