Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: C# and Oracle 8i - returns from stored procedures

Re: C# and Oracle 8i - returns from stored procedures

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Thu, 27 Jan 2005 21:59:38 -0000
Message-ID: <41f963ec$0$19162$cc9e4d1f@news-text.dial.pipex.com>


"Bret" <bret.colburn_at_lmco.com> wrote in message news:1106848663.578907.176310_at_c13g2000cwb.googlegroups.com...
> I'm accessing a stored procedure that returns two parameters, the first
> is a string and the second is a cursor. I get the cursor data but not
> the string. Any ideas?

<snip>
> cmd.Parameters.Add("p_rc",OracleType.LongVarChar,50).Direction =
> ParameterDirection.Output;
> cmd.Parameters.Add("p_rowset",OracleType.Cursor).Direction =
> ParameterDirection.Output;
> OracleDataAdapter adapt = new OracleDataAdapter(cmd);
> adapt.Fill(myDataSet);
> // at this point I thought I'd have two tables in my dataset, the first
> containing only the string from the first parameter, the second
> containing the cursor data. I'm only getting one table and it contains
> the cursor data.

I don't think that I would expect a table for the string. I'd expect to use

String myvar := cmd.Parameters("p_rc").Value;

from memory.

-- 
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com 
Received on Thu Jan 27 2005 - 15:59:38 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US