Article View: borland.public.cppbuilder.database.ado
Article #1147Re: AdoQuery refresh
From: Viatcheslav V. Vassiliev
Date: Tue, 05 Oct 2004 12:37
Date: Tue, 05 Oct 2004 12:37
62 lines
3273 bytes
3273 bytes
Access uses lazy writes and waits some seconds (5 sec.) before flush data
onto disk. But if ADOQuery is connected to the same TADOConnection and
connection is not re-opened, you should see changes. Try to install latest
Jet SP from http://www.microsoft.com/downloads .
//------------------------------------------
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:41628ad0@newsgroups.borland.com...
> I use an Access database... i tried with TADOConnection without
> improvements!
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel
> messaggio news:41627996$1@newsgroups.borland.com...
> > 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:
<4162957e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41624583@newsgroups.borland.com> <41627996$1@newsgroups.borland.com> <41628ad0@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> <41627996$1@newsgroups.borland.com> <41628ad0@newsgroups.borland.com> Subject: Re: AdoQuery refresh Date: Tue, 5 Oct 2004 16:37:13 +0400 Lines: 64 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: <4162957e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096979838 213.234.218.42 (5 Oct 2004 05:37:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail