Article View: borland.public.cppbuilder.database.ado
Article #4552Re: Incorrect documentation for TADOStoredProc
From: Philip du Toit
Date: Tue, 27 Nov 2001 15:35
Date: Tue, 27 Nov 2001 15:35
38 lines
2294 bytes
2294 bytes
Hi, Have you prepared the stored proc at design/run time?? Just like a query, you could do a ADOStoredProc->Prepare() once and that should eliminate the out of bounds problem... (or at design time, you could extract the parameter definitions). Philip "Graham Reeds" <grahamr@omnieng.co.uk> wrote in message news:3bfcf383_2@dnews... > I'm trying to get parameters passed via TADOStoredProc. > > I've tried the example from the Borland Help Files but that gives a "E2288 > Pointer to structure required on left side of -> or ->*" compiler error > message. > > I've also tried > ADOStoredProc->Parameters->Items[0]->Value = PROJECT_ID; > yet that generates a runtime error of ListIndex out of bounds (0); > > I've tried several variations on this theme yet nothing is working. Anybody > got any working suggestions? > > What I am trying to do is speed my application by replacing the INSERT > statement that is parsed everytime (and ergo very slow) with a stored > procedure that will reuse my the cursor and hopefully make it faster (it > currently takes about 15 mins to insert a test suite of 100,000 records and > I would like to reduce that substantially. > > -- > > Yours faithfully, Graham Reeds. > grahamr@omnieng.co.uk | http://omnieng.co.uk/ > >
Technical Details
Message-ID:
<3c03b323_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3bfcf383_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,68b49c4782325fc3 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-11-27 07:40:00 PST Reply-To: "Philip du Toit" <philipd@scopetechnology.com> From: "Philip du Toit" <philipd@scopetechnology.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3bfcf383_2@dnews> Subject: Re: Incorrect documentation for TADOStoredProc Date: Tue, 27 Nov 2001 17:35:31 +0200 Lines: 40 Organization: Scope Technologies X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 196.25.126.136 Message-ID: <3c03b323_1@dnews> X-Trace: dnews 1006875427 196.25.126.136 (27 Nov 2001 07:37:07 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews