Here is the simple stored procedure that returns a character string literal
PROCEDURE getUserValidateProfileValue (
outParam1 OUT VARCHAR2)
AS
BEGIN
SELECT 'testABC' into outParam1 from dual;
END getUserValidateProfileValue;
this runs OK in Toad. And following is how I call it from my C# app (note: I have several other procedures that get called using same connection, etc, which all work fine)
...
using (OracleCommand command = DaoHelper.GetOracleBoundByNameStoredProcedureCommand(conn, schema, pkg, "getUserValidateProfileValue"))
{
command.Parameters.Add("outParam1", OracleDbType.Varchar2, 2000, ParameterDirection.Output);
command.ExecuteNonQuery(); <<<---bombs out here
s1 = command.Parameters["outParam1"].Value.ToString();
}
this bombs out at "command.ExecuteNonQuery();"
how to retrieve this output?