🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ClientDataSet Insert with AutoInc field to Access Database

#584
From: Bas Groeneveld
Date: Wed, 14 Sep 2005 14:19
37 lines
2535 bytes
Thanks for the information.

With that and a few hours trial and error I was able to get the
ClientDataSets working really well. The application can now create new
master and detail records (I don't use Master-Detail definitions on the
datasets but have 'rolled my own'), update the new data and then continue to
edit the new data with no errors.

This is better than a lot of applications based directly on ADO DataSets
(including some of my own) where master data often has to be saved before
detail records can be added.

If anyone is interested I would be happy to post details of the solution,
though with 20-20 hindsight and improved understanding I know realise that
the information was contained in the various articles and posts I had looked
at before. With the exception of Jet supporting the @@IDENTITY mechanism
that is.

Cheers
Bas

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:43273953$1@newsgroups.borland.com...
> Access, at least Jet 4 through OLEDB/ADO, supports select @@identity.
> However it would be good to test how it works in multi-user mode (or with
> multiple TADOConnections to the same db) because of lazy writes
implemented
> in Access.
>
> //------------------------------------------
> 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)
>
Technical Details
Message-ID: <4328312b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4326917f@newsgroups.borland.com> <43273953$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,615b53151a82876e
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bas Groeneveld" <nospam@nospam.com.au>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4326917f@newsgroups.borland.com> <43273953$1@newsgroups.borland.com>
Subject: Re: ClientDataSet Insert with AutoInc field to Access Database
Date: Thu, 15 Sep 2005 00:19:32 +1000
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 60.230.161.60
Message-ID: <4328312b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126707499 60.230.161.60 (14 Sep 2005 07:18:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail