Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MaxRecords question

30 views
Skip to first unread message

Jan Gucik

unread,
Feb 7, 2000, 3:00:00 AM2/7/00
to
Can I use property MaxRecords on TAdoTable?

When accessing large table, I need only limited number of records, but
setting this property appear functionless.


John.

gu...@post.cz

Tomasz Cwajda (szaman)

unread,
Feb 10, 2000, 3:00:00 AM2/10/00
to
On Mon, 7 Feb 2000 11:07:33 -0000, "Jan Gucik" <gu...@atlas.cz> wrote:

>Can I use property MaxRecords on TAdoTable?
>
>When accessing large table, I need only limited number of records, but
>setting this property appear functionless.
>

Yes it is strange that it's present. May be it works with some
providers ?

But why not to use TADOQuery ? It is simple to do live query with
ado.


Tomek Cwajda
(szaman)

Jan Gucik

unread,
Feb 11, 2000, 3:00:00 AM2/11/00
to
> >Can I use property MaxRecords on TAdoTable?
> >
> >When accessing large table, I need only limited number of records, but
> >setting this property appear functionless.
> >
> Yes it is strange that it's present. May be it works with some
> providers ?
>
> But why not to use TADOQuery ? It is simple to do live query with
> ado.

Yes, I think that TADOQuery works much better with MaxRecords.

After retrieving 10 records from 10000, is there any way how can
retrieve next 10 ? I need this solution for DBGrid-like component.
BTW: Setting CursorLocation to clUseServer is not suitable for problem.

John.

gu...@atlas.cz

Jan Gucik

unread,
Feb 19, 2000, 3:00:00 AM2/19/00
to
Hi Hairy,

After reading a lots of interesting opinions from this discussion group, I
left database engine Access a switch
to true SQL Server.

Problem SQL TOP N has simple solution when I use SELECT and WHERE
statements, but
with ORDER BY it's not so easy. I can't presume existence of unique key
(field) for
additional limiting and seting position for result set.

I newbie in SQL, so may be I going wrong way.

Is there any SQL ability for runtime creating special unique index field
directly in SELECT statement. Something
like record ranking ?

BTW. Is there any diference between TOP N and property MaxRecord, e.g. in
optimalisation strategy on server side ?

Jan.


Harry Van Tassell <ha...@nada.com> píąe v diskusním
příspěvku:88jre5$qe...@bornews.borland.com...
> Hi Jan,
>
> I forgot to include in my last message a comment to the person who
started
> this thread, that while MaxRecords doesn't work in MS Access it works just
> fine in SQL-7 and TOP N works in both.
>
> > It's a pity, there is not delphi code for SQL TOP N grid sollution. ;-(
>
> My, what a pity you can't use all the Delphi code contained in that thread
> but OTOH I'll look forward to seeing your own coded solution published
here.
> ;>)
>
> Regards,
> Hairy
>
>
> Jan Gucik <gu...@atlas.cz> wrote in message
> news:88jpck$q7...@bornews.borland.com...
> > Hi Hairy,
> >
> > thank for very nice discussion thread with a lot of interesting notes
> about
> > using SQL.
> >
> > It's a pity, there is not delphi code for SQL TOP N grid sollution. ;-(
> >
> > Jan.
> >
> >
> > Harry Van Tassell <ha...@nada.com> píąe v diskusním
> > příspěvku:88jk16$q7...@bornews.borland.com...
> > > Hi Jan,
> > >
> > > The best discussion and solution to your problem that I've ever seen
was
> > by
> > > a talented fella named Craig Baugh who sometimes visits this NG. Go
read
> > all
> > > the post by him in the thread centered on this URL. In one of his
posts
> he
> > > shows how he uses SQL TOP N to do speedy record selection via
> incremental
> > > searching displayed in a dbgrid. All very good stuff...
> > >
> > >
> >
>
"http://x31.deja.com/=infoseek/getdoc.xp?AN=539264130&CONTEXT=942720850.6853
> > > 75573&hitnum=33"
> > >
> > > Regards,
> > > Hairy
> > >
>
>
>
>
>
>
>

Harry Van Tassell

unread,
Feb 19, 2000, 3:00:00 AM2/19/00
to
Hi Jan,

When using clientside cursor you can sort a recordset.

Regards,
Hairy


Jan Gucik <gu...@atlas.cz> wrote in message

news:88m17k$s1...@bornews.borland.com...

0 new messages