in line 174:
$query = $this->query(“SELECT COUNT(*) AS numrows FROM `”.$this->dbprefix.$table.”`”);
This does not work in MS SQL Server 9.0.
It should be:
$query = $this->query(“SELECT COUNT(*) AS numrows FROM “.$this->dbprefix.$table);
OR
$query = $this->query(“SELECT COUNT(*) AS numrows FROM [”.$this->dbprefix.$table.”]”);
in case if there are problems with prefixes.
in line 246:
$sql = “SELECT TOP 1 FROM “.$this->escape_table($table);
It should be:
$sql = “SELECT TOP 1 * FROM “.$this->escape_table($table);
