🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Stored Proc run time

#4240
From: Harold Howe [TeamB]
Date: Fri, 01 Mar 2002 16:35
22 lines
1793 bytes
> When placing the stored proc control on a form and using the following code
> it doesnt work.
> 
> spData->ConnectionString = p_DBConn;
> spData->ProcedureName = "ap_tblForm_INS;1";
> spData->Parameters->ParamByName("@ins_company_id")->Value = p_coyid;
> spData->Parameters->ParamByName("@ins_data")->Value = p_data;
> spData->Parameters->ParamByName("@ins_formType_id")->Value = 1;
> spData->ExecProc();
> 
> However if I fill in the connection string and procedure name at design time
> it works fine...

My guess is that this has to do with the parameters. When you configure the stored
proc at design time, the parameters are filled in for you. The stored proc component
has to hit the database to read the parameters in. 

However, if you configure the stored proc in code, the parameters may not retrieved
for you. I don't know if this is true, but it is something you might want to check.

Harold Howe [TeamB]
http://www.bcbdev.com
Technical Details
Message-ID: <3C7FADD8.DCB35028@bcbdev.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c7d6f10$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,9f213c997df0c8ad
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-03-01 08:37:20 PST
Message-ID: <3C7FADD8.DCB35028@bcbdev.com>
Date: Fri, 01 Mar 2002 10:35:36 -0600
From: "Harold Howe [TeamB]" <hhowe@bcbdev.com>
X-Mailer: Mozilla 4.03 [en] (WinNT; I)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Stored Proc run time
References: <3c7d6f10$1_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.216.65.188
X-Trace: dnews 1015000476 12.216.65.188 (1 Mar 2002 08:34:36 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews