各位大峡,我使用VB+Oracle9i,现在在程序中,发送一个执行指令执行存储过程,不知道记录集如何能得到,在SQL2000中,可以采用RecordSet,而在Oracle9i中不知道该如何做?请各位多多帮忙!本人不胜感谢!

解决方案 »

  1.   

    一样用recordset对象,区别只是connection对象的connectionstring属性中的设置
      

  2.   

    楼上乱说。
    oracle在存储过程不能直接返回结果集,要用REG CURSOR
      

  3.   

    //oracle在存储过程不能直接返回结果集,
    那oracle不是要告到ms没内裤穿?
      

  4.   

    引用ado 2.0或更高版本
    dim Cn as connection
    dim Cmd as command
    dim Rs as recordsetset Cn= new connection
    cn.connectionstring=连接语句Set Cmd = New Command
    Cmd.ActiveConnection = Cn
    Cmd.CommandType = adCmdStoredProc
    Cmd.CommandText = 存储过程名Set Rs = New Recordset
    Rs.CursorLocation = adUseClient
    Set Rs = Cmd.Execute 'Rs就是存储过程返回的记录集
      

  5.   

    请问一下,用你的这个老是出现OLE DB出错啊
      

  6.   

    http://community.csdn.net/Expert/topic/3478/3478168.xml?temp=.1562921
    需要进一步帮忙?