🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Asynchronous queries

#1374
From: Star
Date: Wed, 28 Jul 2004 14:03
53 lines
2529 bytes
Vassiliev, thanks for your answer.

However, that was not my question. I think I didn't explain it correctly.
I'm trying to find out how I can read the records that the SQL Server has
already returned.
That's why I'm using eoAsyncFetch. I want to start displaying records to the
user even when
the query hasn't finished yet.

Thanks



"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:41073cac@newsgroups.borland.com...
> If you do not display your query in UI - use server-side cursor, it will
not
> fetch all rows into memory.
>
> //------------------------------------------
> 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)
>
> "Star" <---> �������/�������� � �������� ���������:
> news:4106de81$1@newsgroups.borland.com...
> > Hi,
> >
> > I have very big table (about 50 million records). I usually make some
> > queries on this table, and it can take
> > several minutes to run. Is there anyway to start getting records as soon
> as
> > there is one available?
> >
> > I thought I could use something like this:
> >
> > ADODataSet1->CommandText = "SELECT Code From Subs_Subjects";
> >
> > ADODataSet1->ExecuteOptions = ADODataSet1->ExecuteOptions <<
eoAsyncFetch;
> > ADODataSet1->Open();
> >
> > Is that the way to do it? Should I get an event for every new record
> > returned? In that case, what event should I look at?
> >
> > Thanks
> >
> >
>
>
Technical Details
Message-ID: <4107b28e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4106de81$1@newsgroups.borland.com> <41073cac@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,e0caeb4fee49b407
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Star" <--->
Newsgroups: borland.public.cppbuilder.database.ado
References: <4106de81$1@newsgroups.borland.com> <41073cac@newsgroups.borland.com>
Subject: Re: Asynchronous queries
Date: Wed, 28 Jul 2004 10:03:49 -0400
Lines: 55
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: 209.227.134.122
Message-ID: <4107b28e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091023502 209.227.134.122 (28 Jul 2004 07:05:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail