如何让Ado执行存储过程后能获取RecordCount的值。
Dim Cmd As New ADODB.Command
Cmd.CommandText = Trim(procName) '//////引号内为存储过程
Cmd.CommandType = adCmdStoredProc
Cmd.ActiveConnection = Conn
Set rs1 = Cmd.Execute() '此操作,不能获取记录集的RecordCount的值,永远只能返回-1
rs1.Open Cmd, , adOpenKeyset, adOpenKeyset '此方法可以获取 RecordCount