Article View: borland.public.cppbuilder.database.ado
Article #1801Re: ADO Access database, and multiusers. Again
From: Viatcheslav V. Vassiliev
Date: Fri, 30 Jan 2004 13:17
Date: Fri, 30 Jan 2004 13:17
50 lines
2772 bytes
2772 bytes
> I've tried to call Requery(), and it's work, but what message or event I've > to wait for call Requery ? There are no notifications. You call Requery() when you need to refresh data. > If I use server-side curson every changes are written on DB immediately ? On client-side cursor changes are written immediately (if not in batch mode) too. But on server-side cursor TADODataSet reads data from database while on client-side cursor - from in-memory cache, so changes will be reflected only on server-side cursor. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Stefano" <s.dardari@tin.it> �������/�������� � �������� ���������: news:401a2f5d$2@newsgroups.borland.com... > Hi Viatcheslav V. Vassiliev, > > > You should either use server-side cursor or call Requery() to renew data. > > Client-side cursor fetches all rows and work with in-memory cache, not > with > > data in database. > > Yes, but when a user do a change in the DB from a client, how the other > clients can "feel" that ? > > I've tried to call Requery(), and it's work, but what message or event I've > to wait for call Requery ? > > > You may get SELECT with server-side cursor. Generally you may execute any > > SQL statement for server-side cursor as for client-side cursor. However > > sometimes recordset may become read-only and even forward-only. > > If I use server-side curson every changes are written on DB immediately ? > > Thank's for your patience! :) > Steve > >
Technical Details
Message-ID:
<401a596e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4018d307@newsgroups.borland.com> <40191b6c$1@newsgroups.borland.com> <401a2f5d$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,f3560462f9154d98 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-30 05:21:56 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4018d307@newsgroups.borland.com> <40191b6c$1@newsgroups.borland.com> <401a2f5d$2@newsgroups.borland.com> Subject: Re: ADO Access database, and multiusers. Again Date: Fri, 30 Jan 2004 16:17:33 +0300 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <401a596e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075468654 213.234.218.42 (30 Jan 2004 05:17:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail