Returning more than 1000 rows in classic asp adodb.recordset

Posted by peg_leg on Stack Overflow See other posts from Stack Overflow or by peg_leg
Published on 2011-02-16T18:22:18Z Indexed on 2011/02/16 23:25 UTC
Read the original article Hit count: 154

Filed under:
|
|

My code in asp classic, doing a mssql database query:

        rs.pagesize = 1000  ' this should enable paging
        rs.maxrecords = 0   ' 0 = unlimited maxrecords      

        response.write "hello world 1<br>"
        rs.open strSql, conn 

        response.write "hello world 2<br>"

My output when there are fewer than 1000 rows returned is good. More than 1000 rows and I don't get the "hello world 2".

I thought that setting pagesize sets up paging and thus allows all rows to be returned regardless of how many rows there are. Without setting pagesize, paging is not enable and the limit is 1000 rows. However my page is acting as if pagesize is not working at all.

Please advise.

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about ado