Regarding SQL Server paging: Solutions
| From: | Markus Wolff | Date: | Fri, 06 Aug 2004 08:25:11 +0000 |
| Subject: | Regarding SQL Server paging: Solutions | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13980@lists.php.net to get a copy of this message | ||
Hi there,
not really a PEAR topic, but it has been asked countless times on this list how to get paged resultsets from a Microsoft SQL Server, which doesn't support LIMIT (or at least doesn't support offsets).
I've just stumbled upon an article on CodeProject that not only shows several different methods on how to achieve paged results with MSSQL, but also provides benchmark results for each of these methods. Although it refers to using ASP.NET datagrids, the article's focus is on raw SQL, so all of it can easily be applied to PHP.
Here's the link:
http://www.codeproject.com/aspnet/PagingLarge.asp
HTH,
Markus