Re: ADO vs. Progress Bar
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Wed, 21 Sep 2005 14:12:49 +0100
"Hatim Arqam" <Hatim Arqam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:71EC4D58-2923-4020-B770-3A2863B4236B@xxxxxxxxxxxxxxxx
> How can I monitor (by a progress bar or whatever) the data retrieved from
a
> select statement sent to a sql server 2000 DataBase by ADO control from a
VB6
> form?
Is it using an ADO object like a Recordset?
If so, you want the FetchProgress event.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdevtfetchprogress.asp
> Making in consederation that the targeted table is very huge ... about 3
> millions of rows.
Well I would not do that. It would have appalling performance.
Nobody can browse 3 million rows.
And what if was 100 million records?
When users say "show me this table", they dont really mean that.
Just show them a portion of the table.
So you should work to retrieve, say 2000 rows and present that
(using WHERE clauses or TOP (of SQL Server)).
If the user moves down to the end of the first 2000, then SELECT the next
1000, lose the first 1000 and keep the second 1000 and reposition.
And if the user presses a key that means go to the bottom, you SELECT the
last 2000 rows.
You will get much better perceived performance.
Stephen Howe
.
- Prev by Date: Re: Help in migrating DAO to ADO in VB 6
- Next by Date: ADOX copy database
- Previous by thread: Re: Help in migrating DAO to ADO in VB 6
- Next by thread: Re: ADO vs. Progress Bar
- Index(es):
Relevant Pages
|
|