🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TADOQuery

#1819
From: Andreas Wehner
Date: Mon, 09 Feb 2004 11:39
21 lines
1772 bytes
Hello,

I've converted my former project from using the BDE to using ADO.
Unforunately I got into a problem with using TADOQuery.

I have to create a new dataset in a table which I'm doing with
TADOQuery->Post(). The dataset has an autoincrement primary key and up
to this point the dataset is created in the database and a new value
for the key field is given. This works as it did before.

With TQuery and using the BDE the given value for the key field was
immediately present in my app after the post (which was set to 0
before posting). But now this value (which I need to do further
operations on exactly this new created dataset) isn't updated with the
value given from the database and so the rest does not work any
longer.

Is there any way to get this value without doing a complete new query
on the database?

Thanks in advance, Andi
Technical Details
Message-ID: <c07rk6$13jds3$1@ID-215342.news.uni-berlin.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!ppp-82-135-0-240.mnet-online.DE!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a16a472bbd1d718e,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-02-09 03:42:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!ppp-82-135-0-240.mnet-online.DE!not-for-mail
From: "Andreas Wehner" <archimedes@techstat.de>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: TADOQuery
Date: Mon, 9 Feb 2004 12:39:58 +0100
Lines: 23
Message-ID: <c07rk6$13jds3$1@ID-215342.news.uni-berlin.de>
NNTP-Posting-Host: ppp-82-135-0-240.mnet-online.de (82.135.0.240)
X-Trace: news.uni-berlin.de 1076326854 37336963 I 82.135.0.240 ([215342])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106