🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AdoQuery refresh

#1145
From: Viatcheslav V. Vassiliev
Date: Tue, 05 Oct 2004 10:38
38 lines
2133 bytes
What is your DBMS? Are you on server-side or client-side cursor?

If you set ConnectionString, try to use TADOConnection.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Chri" <chrip@libero.it> �������/�������� � �������� ���������:
news:41624583@newsgroups.borland.com...
> I've a problem with AdoQuery component taht is, if i have ADOQuery the
> component in my form:
>
> TADOQuery* pAdoQuery  =  (TADOQuery*) ADOQuery;
> pAdoQuery->Close();
> pAdoQuery->SQL->Clear();
> pAdoQuery->SQL->Add("SELECT ...");
> pAdoQuery->Open();
>
> pAdoQuery->Append();
> pAdoQuery->FieldValues[".."] = ...;
> pAdoQuery->Post();
>
> if i try to se immediatly the result of the append it doesn't work:
> pAdoQuery->Close();
> pAdoQuery->SQL->Clear();
> pAdoQuery->SQL->Add("SELECT ...");
> pAdoQuery->Open();
>
> it works only if i wait some seconds....!?!?!?!
> How can i force the ADOQuery to store immedialtly the data?
> Thanks, Chri.
>
>
Technical Details
Message-ID: <41627996$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41624583@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3b36c2cc94944aff
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41624583@newsgroups.borland.com>
Subject: Re: AdoQuery refresh
Date: Tue, 5 Oct 2004 14:38:09 +0400
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <41627996$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096972694 213.234.218.42 (5 Oct 2004 03:38:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail