🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to I catch ADO exceptions?

#665
From: Mike Shkolnik
Date: Thu, 09 Feb 2006 14:18
22 lines
1550 bytes
try
  yourTADOQuery.SQL.Text := 'CREATE TABLE .....';
  yourTADOQuery.ExecSQL;
except
end;

--
With best regards, Mike Shkolnik
EMail: mshkolnik@scalabium.com
http://www.scalabium.com

"David" <no@email.com> wrote in message
news:43eb4900@newsgroups.borland.com...
> Hi
>
> How do I catch exceptions created by ADO components?
>
> What I have done is I am using TADOQuery to create a table, but
> everytime I execute the code it throws an exception saying this table
> has been created. I would like to catch this.
>
> Thanks
Technical Details
Message-ID: <43eb4e6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43eb4900@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,531b1b108fbc13a5
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Shkolnik" <mshkolnik2002@ukr.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <43eb4900@newsgroups.borland.com>
Subject: Re: How to I catch ADO exceptions?
Date: Thu, 9 Feb 2006 16:18:04 +0200
Lines: 24
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: 62.244.34.86
Message-ID: <43eb4e6d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139494509 62.244.34.86 (9 Feb 2006 06:15:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail