🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to use ADOStoredProc

#5359
From: Hien Tran
Date: Mon, 11 Jun 2001 03:16
26 lines
1539 bytes
I have 3 ADO components on my form.
1/ ADOConnection
2/ ADOQuery
3/ ADOStoredProc

I program worked well with ADOQuery, but ADOStoredProc didn't work.

My store procedure have 1 input paramater @file_number.
and this is my source code:

ADOStoredProc->ProcedureName = "sp_data_integrity;1";
ADOStoredProc->Parameters->Clear();
ADOStoredProc->Parameters->CreateParameter("@File_Number", ftString,
pdInput, 30, NULL);
ADOStoredProc->Parameters->ParamByName("@File_Number")->Value = sFileNumber;
if(!ADOStoredProc->Prepared)
    ADOStoredProc->Prepared = true;
ADOCommand->Open();

I got a error message: Time Out

If I replace ADOStoredProc by ADOCommand it worked well.

What is happenning?

Thanks in advance.
Technical Details
Message-ID: <3b243874_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,5d34effce9f1fca5,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-10 20:35:56 PST
From: "Hien Tran" <hien@camgsm.com.kh>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to use ADOStoredProc
Date: Mon, 11 Jun 2001 10:16:30 +0700
Lines: 30
Organization: CAMGSM
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 203.41.58.8
Message-ID: <3b243874_1@dnews>
X-Trace: dnews 992229492 203.41.58.8 (10 Jun 2001 20:18:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews