J
jens Jensen
I have the following code:
OracleConnection ocn = null;
ocn = new
OracleConnection(ConfigurationManager.AppSettings["ODB_Connectionstring"]);
OracleParameter omid = new OracleParameter("OUT_MESSAGE_ID",
OracleType.Int32);
omid.Direction = ParameterDirection.Output;
OracleParameter om = new OracleParameter("OUT_MESSAGE", OracleType.Clob);
om.Direction = ParameterDirection.Output;
using (ocn)
{
try
{
OracleHelper.ExecuteNonQuery(ocn, CommandType.StoredProcedure,
"GET_MESSAGE", omid,om);
message_id =(int)omid.Value;
message=om.Value.ToString();
if (message ==DBNull.Value.ToString()) return false;
Console.WriteLine(message_id);
Console.WriteLine(message);
Console.Read();
return true;
}
catch
{
message_id =0;
message=null;
throw;
}
my question is , how to handle the OracleType.Clob in C#;
I undertand it should correspond to some form xmldocument type.
What is the exact type in ..Net?
many thanks in advance
JJ
OracleConnection ocn = null;
ocn = new
OracleConnection(ConfigurationManager.AppSettings["ODB_Connectionstring"]);
OracleParameter omid = new OracleParameter("OUT_MESSAGE_ID",
OracleType.Int32);
omid.Direction = ParameterDirection.Output;
OracleParameter om = new OracleParameter("OUT_MESSAGE", OracleType.Clob);
om.Direction = ParameterDirection.Output;
using (ocn)
{
try
{
OracleHelper.ExecuteNonQuery(ocn, CommandType.StoredProcedure,
"GET_MESSAGE", omid,om);
message_id =(int)omid.Value;
message=om.Value.ToString();
if (message ==DBNull.Value.ToString()) return false;
Console.WriteLine(message_id);
Console.WriteLine(message);
Console.Read();
return true;
}
catch
{
message_id =0;
message=null;
throw;
}
my question is , how to handle the OracleType.Clob in C#;
I undertand it should correspond to some form xmldocument type.
What is the exact type in ..Net?
many thanks in advance
JJ