CLOB and Stored Procedure
- From: user@xxxxxxxxxxxxxx
- Date: Mon, 09 May 2005 17:50:17 +0200
Hi,
i'm using ORACLE 9i and Delphi 2005.
I'm looking for some examples about using CLOB field from a stored procedure.
I have a field in a one field table defined as CLOB (ORACLE) and i have a dummy stored procedure suppose to insert in this field some Data, a text file of 221 kb, add something and return the whole thing as a CLOB.
Stored Procedure:
function CLOB_TEST( INPUT CLOB) return CLOB
is
C clob;
i number;
begin
dbms_lob.createtemporary(C,true);
for i in 1..3300 loop
dbms_lob.writeappend(C,'012',3) ;
end loop;
dbms_lob.writeappend(C,'END',3) ;
return C;
end;Delphi 2005 (Win32) Code:
ADOStoredProc1.ProcedureName := 'CLOB_TEST';
with ADOStoredProc1.Parameters.AddParameter do
begin
Name := 'RETURN_VALUE';
DataType := ftOraClob;
Direction := pdReturnValue;
end; with ADOStoredProc1.Parameters.AddParameter do
begin
Name := 'CLOB';
DataType := ftOraClob;
Direction := pdInput;
Value := mmText.Text;
end;ADOStoredProc1.ExecProc;
When i run this i got an error:
"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."
Can someone help me, please, to answer to these questions?
1) ftOraClob is not the right DataType to use? 2) There is a limit to the quantity of data i can use with Stored procedure? 3) Do i do this wrong?
Tia
Laurent .
- Follow-Ups:
- Re: CLOB and Stored Procedure
- From: Michael Jacobs
- Re: CLOB and Stored Procedure
- Prev by Date: Re: Problem updating Excel using ADO
- Next by Date: Re: RETURN_VALUES ??? done... What have I gained?
- Previous by thread: Database Filter question
- Next by thread: Re: CLOB and Stored Procedure
- Index(es):
Relevant Pages
|