For anyone getting the "names is not a recognized SET option" error when trying to connect to MSSQL via PDO here is the (temporary) fix: in Koolreport/core/src/datasources open PdoDataSource.php. Go to line 149 and replace this:
if ($charset) {
$this->connection->exec("set names '$charset'");
}
with this:
/*2025-11-24 changed sytax for PDO connections. original charset commented out below*/
if ($charset) {
$charset = "PDO::SQLSRV_ENCODING_".$charset;
$this->connection->setAttribute(PDO::SQLSRV_ATTR_ENCODING, $charset);
}
And you will be good to go.