I have to pass a parameter to the Oracle Stored Procedure and
retrieve a recordset back. I am now using VB6 ADO, through MS OLE DB for
Oracle, to Oracle 7. Do anybody know how to retrieve recordsets from
Oracle Stored Procedure using ADO? Or is this possible?
I tried the following in VB and error
**************************************************
Private Sub Form_Load()
gFConnectOracle
Dim Qy As New ADODB.Command
Dim Parm As New ADODB.Parameter
Set Qy.ActiveConnection = gCnOracle
Set Parm = Qy.CreateParameter(, adInteger, adParamInput)
Qy.Parameters.Append Parm
Parm.Value = 555662222
Qy.CommandType = adCmdStoredProc
Qy.CommandText = "packperson.oneperson"
Set rs = Qy.Execute(showrows)
End Sub
**************************************************
'Run-time error '-2147217900 (80040e14)':
'ORA-06550: line 1, column 7:
'PLS-00306: wrong number or types of arguments in call to
'ONEPERSON'
'ORA-06550: line 1, column 7:
'PL/SQL: Statement ignored
**************************************************
The Oracle Procedure named oneperson, in Package named packperson, with
parameter
(onessn IN NUMBER,
ssn OUT tssn,
fname OUT tfname,
lname OUT tlname)
**************************************************
Please Help!