🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Example of using ADOError interface to get provider errors

#2682
From: Bonny Rais
Date: Sat, 05 Apr 2003 01:18
15 lines
1310 bytes
All,

Can someone share an example of rertrieving error information
from the Errors collection of the TADOConnection class in
order to interpret provider errors?

I am trying to get more information about database errors
when connecting to an ODBC database and the message in the
EDatabaseError is not sufficient - I want to be able to act on
the error and parsing a string is not a reliable option.


Cheers,

Bonny
Technical Details
Message-ID: <3e8e2ef9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,7e002b50bd005697,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-04 17:24:08 PST
From: "Bonny Rais" <bonnyr@optushome.com.au>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Example of using ADOError interface to get provider errors
Date: Sat, 5 Apr 2003 11:18:50 +1000
Lines: 17
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
NNTP-Posting-Host: 210.49.220.198
Message-ID: <3e8e2ef9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049505529 210.49.220.198 (4 Apr 2003 17:18:49 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail