Changing cursor type with stored procedure in ASP
Using ASP, I want to call a stored procedure that returns a recordcount.
I understand that I have to change the cursor type to adOpenKeyset or adOpenStatic to return a recordcount.
开发者_运维知识库What I don't understand is how to modify my vbscript so that it changes the cursor type when calling the procedure.
currently I say cm.commandtype = adCmdStoredProc ..... rs = cm.execute
I suspect I need to add a parameter to the cm.execute but I cant figure out what to add and how to add it.
Thanks
DMD
Use the Open method on your recordset instead. Not 100% sure on the syntax, but something like:
rs.Open cm, , adOpenStatic
精彩评论