Article View: borland.public.cppbuilder.database.ado
Article #5614Re: output parameters in TADOStoredProc
From: Alan Lichtenstein
Date: Wed, 04 Apr 2001 22:57
Date: Wed, 04 Apr 2001 22:57
35 lines
2013 bytes
2013 bytes
This may be worth a try.... Have you tried setting:
ADOSP1->Parameters->Items[pcount]->Size = ( a value greater than 0 )
ADOSP1->Parameters->Items[pcount]->Value = NULL;
Juan Carlos wrote in message <3acb3848$1_2@dnews>...
>
>Hi, All
>
>I need to RETURN a String parameter from Oracle 8.1.6.0.0 DataBAse using
TADOStoredProc. When I try, I gain this erro
>message "Parameter object is improperly defined.
>Inconsistent or incomplete information was provided".
>When I use a ftInteger DataType it work properly but when I
>use ftString don't.
>This is the Stored Procedure prototype
>create or replace procedure SP_CA_URAVOZ(codigo in varchar
> ,valido out number
> ,outstring out varchar)
>
>and this is my code
> ADOSP1->Parameters->AddParameter();
> pcount = ADOSP1->Parameters->Count - 1;
> ADOSP1->Parameters->Items[pcount]->Name = "var2";
> ADOSP1->Parameters->Items[pcount]->Direction = pdOutput;
> ADOSP1->Parameters->Items[pcount]->DataType = ftString;
> ADOSP1->ExecProc();
>
>does any one help me?
>
>thanks in advance
>
Technical Details
Message-ID:
<3acba712$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnewsReferences:
<3acb3848$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ff4e01ac7cf693b3 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-04-04 16:08:07 PST From: "Alan Lichtenstein" <alanl@sss.sungard.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3acb3848$1_2@dnews> Subject: Re: output parameters in TADOStoredProc Date: Wed, 4 Apr 2001 18:57:37 -0400 Lines: 37 Organization: SunGard X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 198.62.209.10 Message-ID: <3acba712$1_1@dnews> X-Trace: dnews 986425106 198.62.209.10 (4 Apr 2001 15:58:26 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews