🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Stored Proc run time

#4235
From: Dave
Date: Wed, 27 Feb 2002 23:49
14 lines
1366 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...

TIA
Technical Details
Message-ID: <3c7d6f10$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,9f213c997df0c8ad,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-02-27 15:53:38 PST
From: "Dave" <dave@nospam.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Stored Proc run time
Date: Thu, 28 Feb 2002 09:49:36 +1000
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 144.137.128.153
Message-ID: <3c7d6f10$1_1@dnews>
X-Trace: dnews 1014853392 144.137.128.153 (27 Feb 2002 15:43:12 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews