🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: adotable and ms-asscess

#3123
From: Ronald Loonstra
Date: Mon, 11 Nov 2002 15:30
91 lines
4437 bytes
Mark,

You've entered the fantastic world of ADO.

I'll advise to read the descriptions of Borland and MS of the ADO features
very thoroughly when it comes to properties like CursorLocation, CursorType,
LockType etc. Myself for example I am still struggling with developing a
robust lockmechanism.

Reading lot's of newsarticles the general purpose of ADO looks to be to
support remote access to databases, for example through new technologies
like webservices. The general idea is to use client-cursors in a
client-server environment.

MS Access does support server-side cursors but this seems to be kind of
faked since MS Access is a file-based engine. MS SQL Server also supports
server-side cursors but the advise is not to use them. There are other
problems you could get using server-side cursors. DBGrids for example don't
work anymore because bookmarks are not supported.

Using large recordsets my experience is as follows:
With a client-side cursor the loading of the recordset takes lots of time.
After that the performance is good when stepping through the recordset. With
a server-side cursor the first records are displayed very fast, but stepping
through the recordset takes lots of time (Locate() etc..)

Keep your recordsets as small as possible.

--
HTH

Ronald Loonstra
CodeFit Applications
www.codefit.nl

"MarkR" <mark.richards8@wapthespamntlworld.com> schreef in bericht
news:3dae8e59$1@newsgroups.borland.com...
> Hi,
>
> I have tried that, but then the cursortype changes from ctDynamic to
> ctKeyset, which stops changes by other users from being seen.
> Is it that MSAccess doesn't support multiuser connections?
>
> "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote in message
> news:3dae5668@newsgroups.borland.com...
> > Set CursorLocation to clUseServer on TADODataSet (TADOQuery, TADOTable
> > etc.).
> >
> > ----------------------------------------------------------------
> > Regards,
> > Viatcheslav V. Vassiliev
> > http://www.oledbdirect.com
> > The fastest way to access MS SQL Server and MS Jet (MS Access)
databases.
> >
> > "MarkR" <mark.richards8@wapthespamntlworld.com> �������/�������� �
> ��������
> > ���������: news:3dad20d3@newsgroups.borland.com...
> > > I am converting a simple app from paradox (using bde) to use ado and
> > > msaccess
> > > In the paradox version, I simply open the table and the app uses
> dataaware
> > > controls, including navigator bar.
> > > When i moved this over to ado and access, it now takes about 30
seconds
> to
> > > start up when i make the table active. The connection object is
already
> > > connected.
> > > It would appear that the application loads the entire contents of the
> > table
> > > into memory prior to displaying the data of the first record.
> > > Does a mechanism exist to stop this? I seem unable to get the direct
> > access
> > > like the paradox version.
> > > any help greatly appreciated.
> > >
> > > --
> > > BCB Version = 6 (sp2) Professional
> > > O/S Windows XP Prof
> > > ------------------------------------------------------
> > > "There are 10 types of people in the World, those that understand
> binary,
> > > and those that don't."
> > > [Thanks to TheFatBoy-UMD]
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <3dcfcb69$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c02.atl3!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3dad20d3@newsgroups.borland.com> <3dae5668@newsgroups.borland.com> <3dae8e59$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,edb7724cda1aaf9c
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-11 07:36:57 PST
From: "Ronald Loonstra" <r.loonstra@codefit.nl>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3dad20d3@newsgroups.borland.com> <3dae5668@newsgroups.borland.com> <3dae8e59$1@newsgroups.borland.com>
Subject: Re: adotable and ms-asscess
Date: Mon, 11 Nov 2002 16:30:35 +0100
Lines: 93
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.121.245.5
Message-ID: <3dcfcb69$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037028201 217.121.245.5 (11 Nov 2002 07:23:21 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c02.atl3!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail