Re: Query load every row
From: Arnie Mauer (xxx_at_nowhere.net)
Date: 12/05/03
- Next message: EnergyWeb: "Re: 1 minute to connect sqlserver??"
- Previous message: DRS: "Re: Create access database on run time"
- In reply to: Brian Bushay TeamB: "Re: Query load every row"
- Next in thread: Brian Bushay TeamB: "Re: Query load every row"
- Reply: Brian Bushay TeamB: "Re: Query load every row"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 5 Dec 2003 11:29:25 -0500
"Brian Bushay TeamB" <BBushay@Nmpls.com> wrote in message
news:cktvsv4lhbva2ad8119vq2qrbtmi2t50cj@4ax.com...
> >I was surprised to notice that the query using ado loads every possible
row
> >(even if there are a lot more than 50000 rows answered to the question).
> >That was not the case with query using BDE.
> >Is there something that manages this behaviour?
>
> You have a few choices. If you user a clientside cursor ADO will fetch
all
> records unless you specify a MaxRecords property. Maxrecords works for a
limit
> but ADO does not have a way to fetch the next group of records so it is
kind of
> limited.
> When I design an interface where the user can enter any selection criteria
I
> will often se MaxRecords and the warn the user if the criteria they enter
> returns maxrecords that they should further limit their query.
>
> You can set the ExecuteOptons for an eoAsyncFetch and records will be
fetched in
> the background after the initial fetch. This does not work with a grid
>
> You can use a clientSide which doesn't fetch records but is an open cursor
on
> the database
>
>
>
> --
> Brian Bushay (TeamB)
> Bbushay@NMPLS.com
Didn't you mean a server-side cursor?
- Arnie
- Next message: EnergyWeb: "Re: 1 minute to connect sqlserver??"
- Previous message: DRS: "Re: Create access database on run time"
- In reply to: Brian Bushay TeamB: "Re: Query load every row"
- Next in thread: Brian Bushay TeamB: "Re: Query load every row"
- Reply: Brian Bushay TeamB: "Re: Query load every row"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|