I have just inherited a pre-designed ASP web project. AS it exists right now, there is a lot of embedded SQL and using the adRS.MoveFirst and adRS.MoveLast methods work fine.
However, the publisher of the site has requested some more advanced operations that are best handled via a parameterized stored procedure (MS SQL Server 7.0 is the database). The stored procedure accepts 2 parameters (a varchar and money data type).
I have tried every possible scenario for opening the recordset:
set adRS = adcmd.execute
adrs.open adcmd,,adOpenKeyset
But whenever an "adrs.MoveFirst" is encountered, an error is created. The error message is "Rowset position cannot be restarted." The Recordset object is display "foward only" as its cursor type.
And to answer any questions now, yes I have tried setting every possible scenario with the adConn, adCmd and adRS object (including both cursortype and cursorlocation). All I ever get is "fowardonly" cursor.
How do I open an ADO Recordset object using a parameterized stored procedure so that I will have bi-directional scrolling within the recordset object?
thanks to anyone who can explain this to me!
bye
Jim
p.s. I know about adRS.getRows but I was hoping to not re-invent the wheel here (i.e. re-write all the loop structures already designed within the page) and utilize functionality that should be present within the ADO Object Model (I never had this problem with RDO).
thanks again.
However, the publisher of the site has requested some more advanced operations that are best handled via a parameterized stored procedure (MS SQL Server 7.0 is the database). The stored procedure accepts 2 parameters (a varchar and money data type).
I have tried every possible scenario for opening the recordset:
set adRS = adcmd.execute
adrs.open adcmd,,adOpenKeyset
But whenever an "adrs.MoveFirst" is encountered, an error is created. The error message is "Rowset position cannot be restarted." The Recordset object is display "foward only" as its cursor type.
And to answer any questions now, yes I have tried setting every possible scenario with the adConn, adCmd and adRS object (including both cursortype and cursorlocation). All I ever get is "fowardonly" cursor.
How do I open an ADO Recordset object using a parameterized stored procedure so that I will have bi-directional scrolling within the recordset object?
thanks to anyone who can explain this to me!
bye
Jim
p.s. I know about adRS.getRows but I was hoping to not re-invent the wheel here (i.e. re-write all the loop structures already designed within the page) and utilize functionality that should be present within the ADO Object Model (I never had this problem with RDO).
thanks again.