I am new to Oracle, so please be gentle...
I am querying an existing Oracle DB using C# and ODP11 in .NET 4. All procedures up to this point have been, well, painful to figure out at first, but mostly "just worked" once i figured what i was doing... this one is a different story...
I have a stored proc that takes 4 parameters: 2 inputs and 2 outputs... the 2 inputs are grand. one of the outputs is a Varchar2 and the other is a refcursor.
I am using an OracleDataReader to run the query, like i have with any other proc that returns a RefCursor, but in this one, reader.Read() constantly returns false and i get no data. The other Output variable does, however, contain data (a string).
I have tried using reader.NextResult() but that returns false too, and my reader.Read() still returns false...
I can confirm that running the proc using Toad returns the correct result set...
Any ideas? What am i doing wrong?
Thanks.