🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5613

Re: ADO with BCB4, stored proc usage.

#5613
From: Alan Lichtenstein
Date: Wed, 04 Apr 2001 22:49
26 lines
1668 bytes
Try something like this, with m_pStp a pointer to a TADOStoredProc object
and m_pTbl a pointer to a TADOTable object :

m_pStp->Parameters->CreateParameter("paramTaxid", ftString, pdInput,
                                          20, NULL );

m_pStp->Parameters->Items[1]->Value =
        m_pTbl->FieldByName("Taxid")->AsString;

Note: The documentation states that when NULL is passed the size (i.e. 20)
must be 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: <3acba528$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <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-04 16:08:06 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: Wed, 4 Apr 2001 18:49:59 -0400
Lines: 31
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: <3acba528$1_1@dnews>
X-Trace: dnews 986424616 198.62.209.10 (4 Apr 2001 15:50:16 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews