The scenario :
I am retrieving a bunch of records from a SQL Server database via a stored procedure. And I am using ADO in conjunction with ASP to display the records. The problem is I cannot use the paging feature of ADO when I retrieve the records via a stored proc but it works ok if I embed the query inside ASP.
I use the ADO Command object to set the parameters for the stored procedure and use
Set Recordset = Command.Execute
to retrieve the records.
In case of a query embedded in ASP, I use
Recordset.Open QueryStr, Connection, adOpenStatic
Now does anyone out there know whether we can use the paging mechanism that ADO provides with stored procedures? Thanx for all your help in advance
I am retrieving a bunch of records from a SQL Server database via a stored procedure. And I am using ADO in conjunction with ASP to display the records. The problem is I cannot use the paging feature of ADO when I retrieve the records via a stored proc but it works ok if I embed the query inside ASP.
I use the ADO Command object to set the parameters for the stored procedure and use
Set Recordset = Command.Execute
to retrieve the records.
In case of a query embedded in ASP, I use
Recordset.Open QueryStr, Connection, adOpenStatic
Now does anyone out there know whether we can use the paging mechanism that ADO provides with stored procedures? Thanx for all your help in advance