Hi, I am trying to execute a stored procedure using the dataprovider, but when i execute it, i always get following error: "Parameter count does not match parameter value count". The count of my SP parameters is the same as those in the code bellow. Any idea what can be wrong? Thanks in advance.
Dim objParameters As New ParameterCollection
objParameters.Add("PI_CLIENTNUMBER", OracleClient.OracleType.VarChar, ParameterDirection.Input, 20)
objParameters.Add("PI_LABNUMBER", OracleClient.OracleType.VarChar, ParameterDirection.Input, 20)
objParameters.Add("PI_INVOICENUMBER", OracleClient.OracleType.VarChar, ParameterDirection.Input, 20)
objParameters.Add("PO_RETURNVALUE")
objParameters("PI_CLIENTNUMBER") = objUser.ClientNumber
objParameters("PI_LABNUMBER") = objUser.LabNumber
objParameters("PI_INVOICENUMBER") = objUser.InvoiceNumber
Dim dr As IDataReader = DataProvider.Instance().ExecuteReader("IsValidUser", objParameters)
If dr.Read Then
Return True
Else ' does not exist
Return False
End If
dr.Close()