Article View: borland.public.cppbuilder.database.ado
Article #2685Re: Example of using ADOError interface to get provider errors
From: BigStew
Date: Mon, 07 Apr 2003 14:56
Date: Mon, 07 Apr 2003 14:56
19 lines
1532 bytes
1532 bytes
for (int i = 0; i < ADOConnection1->Errors->Count; ++i)
{
AnsiString ErrDescription =
ADOConnection1->Errors->Item[i]->Description;
AnsiString ErrSQLState = ADOConnection1->Errors->Item[i]->SQLState;
int ErrNativeError = ADOConnection1->Errors->Item[i]->NativeError;
// Do stuff with Err...
}
Stew
"Bonny Rais" <bonnyr@optushome.com.au> wrote in message
news:3e8e2ef9@newsgroups.borland.com...
> All,
>
> Can someone share an example of rertrieving error information
> from the Errors collection of the TADOConnection class in
> order to interpret provider errors?
Technical Details
Message-ID:
<3e9192e0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e8e2ef9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,7e002b50bd005697 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-07 08:07:38 PST From: "BigStew" <Big_Stew@talk21.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3e8e2ef9@newsgroups.borland.com> Subject: Re: Example of using ADOError interface to get provider errors Date: Mon, 7 Apr 2003 15:56:19 +0100 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.19.90.97 Message-ID: <3e9192e0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049727712 212.19.90.97 (7 Apr 2003 08:01:52 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail