🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO Error ?????

#2882
From: Arnie Mauer
Date: Mon, 24 Feb 2003 14:23
37 lines
1912 bytes
We
catch( const Exception & e )
and it catches DB exceptions.

- Arnie

"Sarath" <sarathbs@yahoo.com> wrote in message
news:3e578abb@newsgroups.borland.com...
> Hi Friends,
>
>         Anybody got an idea how to catch ADO errors.....
>
> eg:
>
>     ADOQuery->Active = false;
>     ADOQuery->AQL->Clear();
>     ADOQuery->AQL->Add("[Job_Code] Like '*'");
>     ADOQuery->Active = true;
>
>     This gave me and error like
>
> "Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT'
> or 'UPDATE'"
> but after this error message the function getting aborted, I want to catch
> this error, and procede to next query is there any way of handling this ?
>
> I tried
>     try{
>         }
>     catch(EDatabaseError &e) //(and EADOError &e also :( )
>
>
> Thanks in advance
> Sarath.
>
>
>
Technical Details
Message-ID: <3e5a2af1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e578abb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,d338aaa66b2e6b6a
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-02-24 06:28:18 PST
From: "Arnie Mauer" <amauer@vrms.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e578abb@newsgroups.borland.com>
Subject: Re: ADO Error ?????
Date: Mon, 24 Feb 2003 09:23:54 -0500
Lines: 39
Organization: VRMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 209.140.211.97
Message-ID: <3e5a2af1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046096625 209.140.211.97 (24 Feb 2003 06:23:45 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail