Article View: borland.public.cppbuilder.database.ado
Article #484Re: How do you catch errors & messages in ADO?
From: George Nakos
Date: Thu, 11 Aug 2005 11:50
Date: Thu, 11 Aug 2005 11:50
24 lines
1797 bytes
1797 bytes
On Sun, 08 May 2005 22:57:06 +0300, Viatcheslav V. Vassiliev <support@oledbdirect.com> wrote: > Try to examine TADOConnection::Errors collection. It contains error > numbers - both COM and native (that goes from db server). > Could it be possible for somebody to provide with some sample code on how to do this (e.g. trap errors)? I know it's only a few lines of code, but it's a bit difficult for me. I don't use too much C++, I guess it's a try/catch block, but I haven't been able to trap ADO errors. BTW: I'm new on the forum, good to be here :) Best regards, George Nakos -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Technical Details
Message-ID:
<op.svcdtzk4qf2fxd@promitheas.metron.internal>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!tiscali!newsfeed2.ip.tiscali.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427de773@newsgroups.borland.com> <427e6f12@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a0b07e6435a98624 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: How do you catch errors & messages in ADO? References: <427de773@newsgroups.borland.com> <427e6f12@newsgroups.borland.com> Message-ID: <op.svcdtzk4qf2fxd@promitheas.metron.internal> Date: Thu, 11 Aug 2005 14:50:13 +0300 From: "George Nakos" <gnakos@metronco.gr> Organization: Metron LTD Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-7 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable User-Agent: Opera M2/8.10 (Win32, build 7685) NNTP-Posting-Host: 83.235.222.66 X-Trace: newsgroups.borland.com 1123760973 83.235.222.66 (11 Aug 2005 04:49:33 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!tiscali!newsfeed2.ip.tiscali.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail