I don’t really work with MSSQL very much and was wondering how to do pagination similar to doing it in MySQL with the LIMIT command. It’s MUCH harder in MSSQL, but here is how you do it:
SELECT * FROM
(SELECT TOP [size_of_record_set] * FROM
(SELECT TOP [end_record] * FROM [table] ORDER BY [field] ASC) AS tbl1 . . . → Read More: Tidbit Tuesday: Paginating in MSSQL


Facebook
Twitter
Digg
Sphinn
LinkedIn
Recent Comments