Board index » delphi » First input parameter goes missing when calling a stored procedure with ado
m...@indigo.net.au (Mike Ray)
![]() Delphi Developer |
Sun, 05 Dec 2004 13:13:30 GMT
First input parameter goes missing when calling a stored procedure with ado
I was hoping some one can help with the following problem using Delphi
5, ADO 2.6 and Oracle 8.1: I am trying to call a stored procedure with six parameters (three What happens is the NO_DATA_FOUND exception is thrown and the error param1= I have have checked the command object parameters immediately prior to Any help is greatly appreciated. //snip----------------------------------------- cmd := CoCommand.Create(); cmd.Parameters.Append(cmd.CreateParameter('param1',adBSTR,adParamInput,100, cmd.Parameters.Append(cmd.CreateParameter('param2',adBSTR,adParamInput,100, cmd.Parameters.Append(cmd.CreateParameter('param3',adBSTR,adParamInput,100, cmd.Parameters.Append(cmd.CreateParameter('param4',adBSTR,adParamOutput,100 cmd.Parameters.Append(cmd.CreateParameter('pOraNumber',adInteger,adParamOut cmd.Parameters.Append(cmd.CreateParameter('pOraMessage',adBSTR,adParamOutpu cmd.Execute(recAffected,param,adCmdStoredProc); the corresponding stored procedure looks like this: --SNIP----------------------------------------- EXCEPTION |