1

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

4

1 回答 1

0

改为在您的记录集上使用 Open 方法。不是 100% 确定语法,但类似于:

rs.Open cm, , adOpenStatic
于 2010-05-28T14:04:39.880 回答