With Direct=true on the connection string I'm getting the following error:
"ORA-01460: unimplemented or unreasonable conversion requested"
Not using direct connection I get the error:
"ORA-01461: can bind a LONG value only for insert into a LONG column"
Example:
Code: Select all
string sqlCmd;
// txt is the CLOB column
sqlCmd = "INSERT INTO T_CLOB (id, txt) VALUES (:id, :text)";
DbCommand cmd = dbConnection.CreateCommand();
cmd.CommandText = sqlCmd;
string longText = new String('x', 6000);
cmd.Parameters.Add(":id", 1);
cmd.Parameters.Add(":text", longText);
cmd.ExecuteNonQuery();
João Angelo