Hi,
i'm having problems with Tables and SqlSrv connection:
This is my function
protected function onCreated()
{
$this->manageTable("Custtable")->inSource(Axapta::class);
}
Axapta is a SQLServer connection:
use \koolreport\dashboard\sources\SQLServer;
class Axapta extends SQLServer
{
protected function connection()
{
return [
"connectionString"=>"sqlsrv:server=****;Database=****",
"username"=>"alex",
"password"=>"******",
"charset"=>"utf8"
];
}
}
And when I try to access this page, it throws this error:
Message: Query Error >> ["42000",102,"[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '0'."] >> SELECT Custtable.ACCOUNTNUM, Custtable.NAMECOMER, Custtable.NAME, Custtable.weblogin, Custtable.PHONE, Custtable.zipcode FROM Custtable OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY || Sql params = [] || Search params = []
It seems that OFFSET command not works with this version of SQL Server but i don't know how can i fix it...