Article View: borland.public.cppbuilder.database.ado
Article #810Re: How do you catch errors & messages in ADO?
From: Viatcheslav V. Vassiliev
Date: Sun, 08 May 2005 19:57
Date: Sun, 08 May 2005 19:57
33 lines
2104 bytes
2104 bytes
Try to examine TADOConnection::Errors collection. It contains error numbers - both COM and native (that goes from db server). //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Vladimir Stefanovic" <antivari@po.sbb.co.yu> �������/�������� � �������� ���������: news:427de773@newsgroups.borland.com... > Hi, > > I asked this a couple of weeks before, but without an answer > (Thread: TADOTable & TADOQuery: OnPost() errors...) > > How do you know what to say to the user when you catch > some post/insert/delete error in ADO? I think that saying > "Some error occured" is not fair. > > I do it now by analyzing the string in 'E->Message' (the more > details with code is in my original thread). > > Is there anything better? > > > > -- > Best regards, > Vladimir Stefanovic >
Technical Details
Message-ID:
<427e6f12@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427de773@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a0b07e6435a98624 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <427de773@newsgroups.borland.com> Subject: Re: How do you catch errors & messages in ADO? Date: Sun, 8 May 2005 23:57:06 +0400 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 85.93.138.132 Message-ID: <427e6f12@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115582226 85.93.138.132 (8 May 2005 12:57:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail