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

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2021-07-21
  • 2021-06-29
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2021-05-26
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案