🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TADODataSet::UpdateBatch: how to intercept errors?

#5536
From: Piero Salandin
Date: Mon, 09 Apr 2001 10:10
18 lines
1604 bytes
I am trying to put ap a "Transactional Way" of updating data on MS SQL
Server via ADO components, mand I'm currently trying the BatchUpdate system.

The method TADODataSet::UpdateBatch() returns a void, so it is not worth to
ask it what has happened during the update operations.

I didn't find any event in the TADODataSet events list which helped me to
get the errors, or at least the fact that some errors occurred!

I even tried to intercept the TADOConnection OnInfoMessage event, but
apparently it has not been fired even in case of error.

What can I do?


--
Ing. Piero Salandin
piero.salandin@libero.it
Technical Details
Message-ID: <3ad1a322_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,35d699418168be5d,start
X-Google-Attributes: gid10698b,public
X-Google-Thread: f5cad,35d699418168be5d,start
X-Google-Attributes: gidf5cad,public
X-Google-ArrivalTime: 2001-04-09 05:02:20 PST
From: "Piero Salandin" <piero.salandin@libero.it>
Newsgroups: borland.public.cppbuilder.database.ado,borland.public.delphi.database.ado
Subject: TADODataSet::UpdateBatch: how to intercept errors?
Date: Mon, 9 Apr 2001 12:10:21 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 151.25.9.136
Message-ID: <3ad1a322_1@dnews>
X-Trace: dnews 986817314 151.25.9.136 (9 Apr 2001 04:55:14 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews