diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index efc0e71..87a6ddc 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -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';