ToeJamNEarl
Programmer
Hey Guys,
I am trying to call a stored procedure with ADO command object as well as connection.
I have the stored procedure return a reference cursor, and the way I call my stored procedure is:
set objRS = datCMD1.execute
The application gives me an error saying wrong type or number of parameters. I have the right number and type of parameters in my code.
This is an example of how I have created a parameter:
Set prmDatabase = datCmd1.CreateParameter("p_Database", adVarChar, adParamInput, 200)
datCmd1.Parameters.Append prmDatabase
prmDatabase.Value = strChosenDB
Any clues if I am doing this wrong? Please help.
The provider I am using is MSDAORA. I used to use provider OraOLEDB, but a testers computer keeps crashing when they try to run my application for reasons I don't know why.
Please help if you can.
Thank you,
-Diran
I am trying to call a stored procedure with ADO command object as well as connection.
I have the stored procedure return a reference cursor, and the way I call my stored procedure is:
set objRS = datCMD1.execute
The application gives me an error saying wrong type or number of parameters. I have the right number and type of parameters in my code.
This is an example of how I have created a parameter:
Set prmDatabase = datCmd1.CreateParameter("p_Database", adVarChar, adParamInput, 200)
datCmd1.Parameters.Append prmDatabase
prmDatabase.Value = strChosenDB
Any clues if I am doing this wrong? Please help.
The provider I am using is MSDAORA. I used to use provider OraOLEDB, but a testers computer keeps crashing when they try to run my application for reasons I don't know why.
Please help if you can.
Thank you,
-Diran