Article View: borland.public.cppbuilder.database.ado
Article #1799Re: ADO Access database, and multiusers. Again
From: Viatcheslav V. Vassiliev
Date: Thu, 29 Jan 2004 14:40
Date: Thu, 29 Jan 2004 14:40
66 lines
3177 bytes
3177 bytes
>What I need to do is to access the same file database from 2 or more instance of the same application, and to SYNC all the edit/insert/delete operation to all clients. 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. >a client-side cursor, just because I need to get a > SELECT result set. 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. //------------------------------------------ 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" <p.bianchi@tin.it> �������/�������� � �������� ���������: news:4018d307@newsgroups.borland.com... > Hi all, > after many question, and thanks to the people that have show the right way, > I've just modified the ADOConnection Properties with : > > Jet OLEDB:Flush Transaction Timeout = 2000 > > and > > Jet OLEDB:Shared Async Delay = 2000 > > What I need to do is to access the same file database from 2 or more > instance of the same application, and to SYNC all the edit/insert/delete > operation to all clients. > > I use ADOConnection, ADODataSet, ADODataSource and a DBGrid (I use this just > as a test form), and a client-side cursor, just because I need to get a > SELECT result set. I've set the cmShareDenyNone in the ADOConnection->Mode > property. > > How can I trig all the users database operations ? > > When I try with this sample application I've monitored all the component > events with breakpoint, but if I do any DB edit/delete/insert operation > nothing appen on the other application connected to same database file. > > What is wrong ? > > Do I've to use an ADORDSConnection component instead of normal ADOConnection > ? > > Thank's to anyone tha can help me. > > Steve > > > > >
Technical Details
Message-ID:
<40191b6c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4018d307@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-29 07:10:07 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4018d307@newsgroups.borland.com> Subject: Re: ADO Access database, and multiusers. Again Date: Thu, 29 Jan 2004 17:40:43 +0300 Lines: 68 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: <40191b6c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075387244 213.234.218.42 (29 Jan 2004 06:40:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail