I cannot get an mssql stored procedure to work. Tried run()->render() and run()->debug() to see if I could even get a hint as to why no data is returning. Execution time is less than a second. The only thing about this stored proc that is a little crazy is it should return 51 columns, but I cannot see that being a problem.
I also tried to configure as PDO, but couldnt get pdo to work with sqlsrv:
Yes, I have the PDO drivers installed and they work in one of my own database classes.
require_once ('c:\wamp\www\_priv\libs\koolreport\autoload.php');
class ReportAr extends \koolreport\KoolReport {
function settings()
{
return array(
"assets"=>array(
"path"=> "c:\wamp\www\dbo\api\assets",
"url"=>"/api/assets"
),
"dataSources"=>array(
"mssql"=>array(
'host' => '172.16.0.40',
'username' => 'myUser123',
'password' => 'MyPa$s',
'dbname' => '007 Test Database',
'class' => "\koolreport\datasources\SQLSRVDataSource"
),
),
);
}
function setup()
{
$this->src('mssql')->query(
"EXEC dbo.getArData @pdate1 = '2018-01-01', @pdate2 = '2019-01-01' " )
->pipe($this->dataStore("report_ar"))->data();
}
}