[eluser]Leandro AR[/eluser]
My name is Leandro, from Buenos Aires, Argentina.
I'm development a application in: CI 1.7.1, PHP 5.2.6 and SQL Server 2005.
The pagination, for now, it's impossible, but in other frameworks like Symphony, it's possible.
I tried the solution using a ROW_NUMBER(), for example:
Code:
SELECT *
FROM
( SELECT *, ROW_NUMBER() OVER (ORDER BY id) as NroFila
FROM $tableXXX
) AS PAG_TABLEXXX
WHERE
NroFila BETWEEN 10 AND 20
Now, how adapted this code to mssql_driver.php -> function _limit($sql, $limit, $offset) ?
In the sql server 2005, the solution could be using ROW_COUNT(), ROW_NUMBER ...
Together we must find a solution to this problem.
Thanks,
Leandro.