Article View: borland.public.cppbuilder.database.ado
Article #5522Re: ADO with BCB4, stored proc usage.
From: Alan Lichtenstein
Date: Thu, 05 Apr 2001 14:24
Date: Thu, 05 Apr 2001 14:24
31 lines
1650 bytes
1650 bytes
Try something like this:
m_pStp->Parameters->CreateParameter("paramTaxid", ftString, pdInput,
20, NULL );
m_pStp->Parameters->Items[0]->Value =
m_pTbl->FieldByName("Client")->AsString
Note: The documentation states that when passing NULL as the value
parameter,
the SIZE parameter ( i.e. 20 ) must be set to a value greater
than zero...
;
cristof wrote in message <3acb4eef_1@dnews>...
>Hi all !
>
>I'm looking for passing a null parameter to a stored proc, using ADO in
BCB4
>with a SQL Server database.
>I'm using a connection object, and then a command object, and then
parameter
>objects, but when i call the execute command and one of my params is null,
i
>does'nt work.
>What properties should i define in my Parameter object ?
>Thx if you have an idea or an example.
>
>
Technical Details
Message-ID:
<3acc801c_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-04!supernews.com!feed.textport.net!news.bnb-lp.com!dnewsReferences:
<3acb4eef_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,7def162d7b01c13b X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-04-05 07:42:08 PST From: "Alan Lichtenstein" <alanl@sss.sungard.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3acb4eef_1@dnews> Subject: Re: ADO with BCB4, stored proc usage. Date: Thu, 5 Apr 2001 10:24:26 -0400 Lines: 33 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: <3acc801c_2@dnews> X-Trace: dnews 986480668 198.62.209.10 (5 Apr 2001 07:24:28 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-04!supernews.com!feed.textport.net!news.bnb-lp.com!dnews