I have this simple Stored Procedure in Oracle:
And I even granted myself an EXECUTE on this procedure
Now I have this code in my VB6 application:
This last RED line gives me an error:
PLS-00306: wrong numbers or types of arguments in call to 'ANDY_LETTINGS'
ORA-06550:line 1, column 7
This Stored Procedure works just fine from VB.NET.
What am I doing wrong in VB6? Any ideas...?
Have fun.
---- Andy
There is a great need for a sarcasm font.
Code:
CREATE OR REPLACE PROCEDURE ANDY_LETTINGS
(lettings_recordset OUT SYS_REFCURSOR)
AS
BEGIN
OPEN lettings_recordset FOR
SELECT DISTINCT SOME_FIELD
FROM TABLEA
END ANDY_LETTINGS;
/
And I even granted myself an EXECUTE on this procedure
Now I have this code in my VB6 application:
Code:
Dim cmdMine As New ADODB.Command
Dim rsMine As New ADODB.Recordset
cmdMine.ActiveConnection = Cn [green]'This is my connection[/green]
cmdMine.CommandTimeout = 300
cmdMine.CommandType = adCmdStoredProc
cmdMine.CommandText = "ANDY_LETTINGS"
[red]
Set rsMine = cmdMine.Execute[/red] [green]'Here is the problem[/green]
This last RED line gives me an error:
PLS-00306: wrong numbers or types of arguments in call to 'ANDY_LETTINGS'
ORA-06550:line 1, column 7
This Stored Procedure works just fine from VB.NET.
What am I doing wrong in VB6? Any ideas...?
Have fun.
---- Andy
There is a great need for a sarcasm font.