Re: Question on cursor location property

From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 12/10/03


Date: Wed, 10 Dec 2003 15:41:23 +0300

Client-side cursor works with in-memoty cache and does not retrieve data
after post. Server-side cursor has limited functionality (it does not
support sort, filter and for some providers may be forward-only read-only).

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"jacky" <_jacky@lauchuen.com_> сообщил/сообщила в новостях следующее:
news:3fd6c5c8$1@newsgroups.borland.com...
> In my case, a auto_number that will auto generate from database, which
type
> of cursor I should use if I want to get this number before post ?
>
> Actually I have tried both, when cursor location set to be Client, I can't
> get the auto_number after post until I have requery, is it the true ? On
the
> other hand, I set it to Server side cursor, this time I can get the
> auto_number after post, but some cases and exception occur "row value out
of
> range".
>
> I am using PostgreSQL and delphi 7, could you give me some hints to solve
> it.
>
> Thanks your very much.
> Jacky
>
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> ╪╤╪g╘С╤l╔С╥s╩D
> :3fd6bfd0$1@newsgroups.borland.com...
> > Client-side cursor fetches all rows into memory, server-side cursor
works
> > directly with DBMS, so it should be used with large datasets when
caching
> > all rows will consume too much memory. Executing updates/inserts/deletes
> > client-side cursor uses SQL query that it creates, server-side cursor
does
> > updates/insertes/deletes directly into DBMS - so with server-side cursor
> it
> > is possible to update row in table that has no primary key or unique
key,
> > client-side cursor may have problems with this. Server-side cursor does
> not
> > support filter/sort.
> >
> > //------------------------------------------
> > Regards,
> > Vassiliev V. V.
> > http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
> > http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> > MS Jet (Access) and Interbase (through OLEDB)
> >
> > "Sunny" <sunny@yahoo.com> сообщи?сообщила ?новостях следующе?
> > news:3fd693f4@newsgroups.borland.com...
> > > Hi all,
> > >
> > > In the property "Cursor Location" in ADO component, there are two
> choices
> > :
> > > clUseClient and clUseServer.
> > >
> > > I would like to know is the benefit of choosing clUseServer over
> > > clUseClient?
> > >
> > > Thanks in advance.
> > >
> > >
> >
> >
> >
>
>



Relevant Pages

  • Re: VB connection to SQL server
    ... > the client machine begins to lose its relevance and accuracy as soon as it ... > aware that the data is probably out of date, a client sided cursor might ... > design minimises the possibility that records will have changed in the ... >> The Database server is in the office, and people use the Vb program from ...
    (microsoft.public.vb.database)
  • Re: Huge memory comsumption of ADODB Connection object
    ... unless the cursor is returning data to the client* I don't see ... I suppose this could cause some extra memory ... Is there a similar behavior in Sybase? ... Server was originally based on that rdbms, so there very well may be. ...
    (microsoft.public.data.ado)
  • Re: VB connection to SQL server
    ... "Chris Barber" wrote in message ... > recordsets (client side cursor) to allow you to persist the recordsets to ... aware that the data is probably out of date, a client sided cursor might fit ... That is because the SELECT statement is executed on the server and the data ...
    (microsoft.public.vb.database)
  • Re: ADO server side cursor sloooow
    ... Using the ODBC driver my tests show that both client and server side ... forward only server side cursor is faster than a client side cursor as ... requiring over 1000 trips over the network. ...
    (comp.databases.btrieve)
  • Re: Accessing A Large MS SQL Table Over ADO Components
    ... Client-side cursor fetches all rows, ... Because I had some performance loss when I set it up to Server ... Server-side cursor does not fetch all rows to client, so if server is on the ... > If we want to display the data on a readonly grid wich component is the ...
    (borland.public.delphi.database.ado)