开发者

Changing cursor type with stored procedure in ASP

开发者 https://www.devze.com 2022-12-09 19:28 出处:网络
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.开发者_运维知识库

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
0

精彩评论

暂无评论...
验证码 换一张
取 消